org.apache.logging.log4j.core.config.plugins
Annotation Type PluginBuilderAttribute


@Documented
@Retention(value=RUNTIME)
@Target(value={PARAMETER,FIELD})
@PluginVisitorStrategy(value=PluginBuilderAttributeVisitor.class)
public @interface PluginBuilderAttribute

Marks a field as a Plugin Attribute.


Optional Element Summary
 boolean sensitive
          Indicates that this attribute is a sensitive one that shouldn't be logged directly.
 String value
          Specifies the attribute name this corresponds to.
 

value

public abstract String value
Specifies the attribute name this corresponds to. If no attribute is set (i.e., a blank string), then the name of the field (or member) this annotation is attached to will be used.

Default:
""

sensitive

public abstract boolean sensitive
Indicates that this attribute is a sensitive one that shouldn't be logged directly. Such attributes will instead be output as a hashed value.

Default:
false


Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.