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
,XmlLayoutBuilder
Base class for Log4j 1 component builders.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
protected static final String
protected static final String
private static Logger
protected static final String
protected static final String
protected static final String
private final String
private final Properties
protected static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Filter
buildFilters
(String level, Filter filter) private String
capitalize
(String value) 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) getProperty
(String key) 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
(package private) String
(package private) String
private String
uncapitalize
(String value)
-
Field Details
-
LOGGER
-
FILE_PARAM
- See Also:
-
APPEND_PARAM
- See Also:
-
BUFFERED_IO_PARAM
- See Also:
-
BUFFER_SIZE_PARAM
- See Also:
-
IMMEDIATE_FLUSH_PARAM
- See Also:
-
MAX_SIZE_PARAM
- See Also:
-
MAX_BACKUP_INDEX
- See Also:
-
RELATIVE
- See Also:
-
NULL
- See Also:
-
prefix
-
properties
-
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder() -
AbstractBuilder
-
-
Method Details
-
buildFilters
-
capitalize
-
getBooleanProperty
-
getBooleanProperty
-
getBooleanValueAttribute
-
getIntegerProperty
-
getNameAttribute
-
getNameAttributeKey
-
getProperties
-
getProperty
-
getProperty
-
getValueAttribute
-
getValueAttribute
-
substVars
-
toBeanKey
-
toJavaKey
-
uncapitalize
-
set
-
set
-
set
-