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 Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprivate static Loggerprotected static final Stringprotected static final Stringprotected static final Stringprivate final Stringprivate final Propertiesprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static FilterbuildFilters(String level, Filter filter) private Stringcapitalize(String value) 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) getProperty(String key) getProperty(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 String(package private) String(package private) Stringprivate Stringuncapitalize(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
-