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.StringATTR_PROPERTY_NAMEstatic java.lang.StringATTR_PROPERTY_VALUEprivate java.lang.StringpropertyNameprivate java.lang.StringpropertyValue
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemPropertyArbiter.BuilderasBuilder()SystemPropertyArbiterbuild()Builds the object after all configuration has been set.SystemPropertyArbiter.BuildersetPropertyName(java.lang.String propertyName)Sets the Property Name.SystemPropertyArbiter.BuildersetPropertyValue(java.lang.String propertyValue)Sets the Property Value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
-
-
-
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 value.- Returns:
- this
-
asBuilder
public SystemPropertyArbiter.Builder asBuilder()
-
build
public SystemPropertyArbiter build()
Description copied from interface:BuilderBuilds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
buildin interfaceBuilder<SystemPropertyArbiter>- Returns:
- the configured instance.
-
-