T
- The ComponentBuilder's own type for fluent APIs.public interface ComponentBuilder<T extends ComponentBuilder<T>> extends Builder<Component>
Modifier and Type | Method and Description |
---|---|
T |
addAttribute(String key,
boolean value)
Adds a boolean attribute.
|
T |
addAttribute(String key,
Enum<?> value)
Adds an enumeration attribute.
|
T |
addAttribute(String key,
int value)
Adds an integer attribute.
|
T |
addAttribute(String key,
org.apache.logging.log4j.Level level)
Adds a logging Level attribute.
|
T |
addAttribute(String key,
Object value)
Adds an Object attribute.
|
T |
addAttribute(String key,
String value)
Adds a String attribute.
|
T |
addComponent(ComponentBuilder<?> builder)
Adds a sub component.
|
ConfigurationBuilder<? extends Configuration> |
getBuilder()
Retrieves the ConfigurationBuilder.
|
String |
getName()
Returns the name of the component, if any.
|
T addAttribute(String key, String value)
key
- The attribute key.value
- The value of the attribute.T addAttribute(String key, org.apache.logging.log4j.Level level)
key
- The attribute key.level
- The logging Level.T addAttribute(String key, Enum<?> value)
key
- The attribute key.value
- The enumeration.T addAttribute(String key, int value)
key
- The attribute key.value
- The integer value.T addAttribute(String key, boolean value)
key
- The attribute key.value
- The boolean value.T addAttribute(String key, Object value)
key
- The attribute key.value
- The object value.T addComponent(ComponentBuilder<?> builder)
builder
- The Assembler for the subcomponent with all of its attributes and sub-components set.String getName()
ConfigurationBuilder<? extends Configuration> getBuilder()
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.