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 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 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 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)
-
-
-
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)
-
-