Package org.apache.log4j.builders
Class AbstractBuilder<T>
- java.lang.Object
-
- org.apache.log4j.builders.AbstractBuilder<T>
-
- Type Parameters:
T- The type to build.
- All Implemented Interfaces:
Builder<T>
- Direct Known Subclasses:
AsyncAppenderBuilder,ConsoleAppenderBuilder,DailyRollingFileAppenderBuilder,FileAppenderBuilder,HtmlLayoutBuilder,LevelMatchFilterBuilder,LevelRangeFilterBuilder,PatternLayoutBuilder,RewriteAppenderBuilder,RollingFileAppenderBuilder,SocketAppenderBuilder,StringMatchFilterBuilder,SyslogAppenderBuilder,TTCCLayoutBuilder
public abstract class AbstractBuilder<T> extends Object implements Builder<T>
Base class for Log4j 1 component builders.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringAPPEND_PARAMprotected static StringBUFFER_SIZE_PARAMprotected static StringBUFFERED_IO_PARAMprotected static StringFILE_PARAMprotected static StringIMMEDIATE_FLUSH_PARAMprotected static StringMAX_BACKUP_INDEXprotected static StringMAX_SIZE_PARAMprotected static StringNULLprotected static StringRELATIVE
-
Constructor Summary
Constructors Constructor Description AbstractBuilder()AbstractBuilder(String prefix, Properties props)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static FilterbuildFilters(String level, Filter filter)booleangetBooleanProperty(String key)booleangetBooleanProperty(String key, boolean defaultValue)protected booleangetBooleanValueAttribute(Element element)intgetIntegerProperty(String key, int defaultValue)protected StringgetNameAttribute(Element element)protected StringgetNameAttributeKey(Element element)PropertiesgetProperties()StringgetProperty(String key)StringgetProperty(String key, String defaultValue)protected StringgetValueAttribute(Element element)protected StringgetValueAttribute(Element element, String defaultValue)protected voidset(String name, Element element, AtomicBoolean ref)protected voidset(String name, Element element, AtomicInteger ref)protected voidset(String name, Element element, AtomicReference<String> ref)protected StringsubstVars(String value)
-
-
-
Field Detail
-
FILE_PARAM
protected static final String FILE_PARAM
- See Also:
- Constant Field Values
-
APPEND_PARAM
protected static final String APPEND_PARAM
- See Also:
- Constant Field Values
-
BUFFERED_IO_PARAM
protected static final String BUFFERED_IO_PARAM
- See Also:
- Constant Field Values
-
BUFFER_SIZE_PARAM
protected static final String BUFFER_SIZE_PARAM
- See Also:
- Constant Field Values
-
IMMEDIATE_FLUSH_PARAM
protected static final String IMMEDIATE_FLUSH_PARAM
- See Also:
- Constant Field Values
-
MAX_SIZE_PARAM
protected static final String MAX_SIZE_PARAM
- See Also:
- Constant Field Values
-
MAX_BACKUP_INDEX
protected static final String MAX_BACKUP_INDEX
- See Also:
- Constant Field Values
-
RELATIVE
protected static final String RELATIVE
- See Also:
- Constant Field Values
-
NULL
protected static final String NULL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractBuilder
public AbstractBuilder()
-
AbstractBuilder
public AbstractBuilder(String prefix, Properties props)
-
-
Method Detail
-
getBooleanProperty
public boolean getBooleanProperty(String key, boolean defaultValue)
-
getBooleanProperty
public boolean getBooleanProperty(String key)
-
getBooleanValueAttribute
protected boolean getBooleanValueAttribute(Element element)
-
getIntegerProperty
public int getIntegerProperty(String key, int defaultValue)
-
getProperties
public Properties getProperties()
-
set
protected void set(String name, Element element, AtomicBoolean ref)
-
set
protected void set(String name, Element element, AtomicInteger ref)
-
set
protected void set(String name, Element element, AtomicReference<String> ref)
-
-