Class SystemPropertyArbiter.Builder
- java.lang.Object
-
- org.apache.logging.log4j.core.config.arbiters.SystemPropertyArbiter.Builder
-
- All Implemented Interfaces:
Builder<SystemPropertyArbiter>
- Enclosing class:
- SystemPropertyArbiter
public static class SystemPropertyArbiter.Builder extends java.lang.Object implements Builder<SystemPropertyArbiter>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ATTR_PROPERTY_NAME
static java.lang.String
ATTR_PROPERTY_VALUE
private java.lang.String
propertyName
private java.lang.String
propertyValue
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemPropertyArbiter.Builder
asBuilder()
SystemPropertyArbiter
build()
Builds the object after all configuration has been set.SystemPropertyArbiter.Builder
setPropertyName(java.lang.String propertyName)
Sets the Property Name.SystemPropertyArbiter.Builder
setPropertyValue(java.lang.String propertyValue)
Sets the Property Value.
-
-
-
Field Detail
-
ATTR_PROPERTY_NAME
public static final java.lang.String ATTR_PROPERTY_NAME
- See Also:
- Constant Field Values
-
ATTR_PROPERTY_VALUE
public static final java.lang.String ATTR_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
propertyName
@PluginBuilderAttribute("propertyName") private java.lang.String propertyName
-
propertyValue
@PluginBuilderAttribute("propertyValue") private java.lang.String propertyValue
-
-
Method Detail
-
setPropertyName
public SystemPropertyArbiter.Builder setPropertyName(java.lang.String propertyName)
Sets the Property Name.- Parameters:
propertyName
- the property name.- Returns:
- this
-
setPropertyValue
public SystemPropertyArbiter.Builder setPropertyValue(java.lang.String propertyValue)
Sets the Property Value.- Parameters:
propertyValue
- the property name.- Returns:
- this
-
asBuilder
public SystemPropertyArbiter.Builder asBuilder()
-
build
public SystemPropertyArbiter build()
Description copied from interface:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
build
in interfaceBuilder<SystemPropertyArbiter>
- Returns:
- the configured instance.
-
-