T
- The type to build.public abstract class AbstractBuilder<T> extends Object implements Builder<T>
Modifier and Type | Field and Description |
---|---|
protected static String |
APPEND_PARAM |
protected static String |
BUFFER_SIZE_PARAM |
protected static String |
BUFFERED_IO_PARAM |
protected static String |
FILE_PARAM |
protected static String |
IMMEDIATE_FLUSH_PARAM |
protected static String |
MAX_BACKUP_INDEX |
protected static String |
MAX_SIZE_PARAM |
protected static String |
NULL |
protected static String |
RELATIVE |
Constructor and Description |
---|
AbstractBuilder() |
AbstractBuilder(String prefix,
Properties props) |
Modifier and Type | Method and Description |
---|---|
protected static Filter |
buildFilters(String level,
Filter filter) |
boolean |
getBooleanProperty(String key) |
boolean |
getBooleanProperty(String key,
boolean defaultValue) |
protected boolean |
getBooleanValueAttribute(Element element) |
int |
getIntegerProperty(String key,
int defaultValue) |
protected String |
getNameAttribute(Element element) |
protected String |
getNameAttributeKey(Element element) |
Properties |
getProperties() |
String |
getProperty(String key) |
String |
getProperty(String key,
String defaultValue) |
protected String |
getValueAttribute(Element element) |
protected String |
getValueAttribute(Element element,
String defaultValue) |
protected void |
set(String name,
Element element,
AtomicBoolean ref) |
protected void |
set(String name,
Element element,
AtomicInteger ref) |
protected void |
set(String name,
Element element,
AtomicReference<String> ref) |
protected String |
substVars(String value) |
protected static final String FILE_PARAM
protected static final String APPEND_PARAM
protected static final String BUFFERED_IO_PARAM
protected static final String BUFFER_SIZE_PARAM
protected static final String IMMEDIATE_FLUSH_PARAM
protected static final String MAX_SIZE_PARAM
protected static final String MAX_BACKUP_INDEX
protected static final String RELATIVE
protected static final String NULL
public AbstractBuilder()
public AbstractBuilder(String prefix, Properties props)
public boolean getBooleanProperty(String key, boolean defaultValue)
public boolean getBooleanProperty(String key)
protected boolean getBooleanValueAttribute(Element element)
public int getIntegerProperty(String key, int defaultValue)
public Properties getProperties()
protected void set(String name, Element element, AtomicBoolean ref)
protected void set(String name, Element element, AtomicInteger ref)
protected void set(String name, Element element, AtomicReference<String> ref)
Copyright © 1999-2022 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.