Class EnvironmentArbiter.Builder
- java.lang.Object
-
- org.apache.logging.log4j.core.config.arbiters.EnvironmentArbiter.Builder
-
- All Implemented Interfaces:
Builder<EnvironmentArbiter>
- Enclosing class:
- EnvironmentArbiter
public static class EnvironmentArbiter.Builder extends Object implements Builder<EnvironmentArbiter>
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_PROPERTY_NAMEstatic StringATTR_PROPERTY_VALUE
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvironmentArbiter.BuilderasBuilder()EnvironmentArbiterbuild()Builds the object after all configuration has been set.EnvironmentArbiter.BuildersetPropertyName(String propertyName)Sets the Property Name.EnvironmentArbiter.BuildersetPropertyValue(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 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 EnvironmentArbiter.Builder setPropertyName(String propertyName)
Sets the Property Name.- Parameters:
propertyName- the property name.- Returns:
- this
-
setPropertyValue
public EnvironmentArbiter.Builder setPropertyValue(String propertyValue)
Sets the Property Value.- Parameters:
propertyValue- the property value.- Returns:
- this
-
asBuilder
public EnvironmentArbiter.Builder asBuilder()
-
build
public EnvironmentArbiter 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<EnvironmentArbiter>- Returns:
- the configured instance.
-
-