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 Object implements Builder<SystemPropertyArbiter>
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_PROPERTY_NAME
static String
ATTR_PROPERTY_VALUE
-
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(String propertyName)
Sets the Property Name.SystemPropertyArbiter.Builder
setPropertyValue(String propertyValue)
Sets the Property Value.
-
-
-
Field Detail
-
ATTR_PROPERTY_NAME
public static final String ATTR_PROPERTY_NAME
- See Also:
- Constant Field Values
-
ATTR_PROPERTY_VALUE
public static final String ATTR_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setPropertyName
public SystemPropertyArbiter.Builder setPropertyName(String propertyName)
Sets the Property Name.- Parameters:
propertyName
- the property name.- Returns:
- this
-
setPropertyValue
public SystemPropertyArbiter.Builder setPropertyValue(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.
-
-