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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the object after all configuration has been set.setPropertyName
(String propertyName) Sets the Property Name.setPropertyValue
(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 Details
-
ATTR_PROPERTY_NAME
- See Also:
-
ATTR_PROPERTY_VALUE
- See Also:
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setPropertyName
Sets the Property Name.- Parameters:
propertyName
- the property name.- Returns:
- this
-
setPropertyValue
Sets the Property Value.- Parameters:
propertyValue
- the property value.- Returns:
- this
-
asBuilder
-
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<EnvironmentArbiter>
- Returns:
- the configured instance.
-