Apache log4cxx  Version 0.10.0
OptionHandler Class Reference

A string based interface to configure package components. More...

Inheritance diagram for OptionHandler:
Object Appender Layout RollingPolicy TriggeringPolicy ErrorHandler Filter AppenderSkeleton DateLayout HTMLLayout PatternLayout SimpleLayout XMLLayout RollingPolicyBase FilterBasedTriggeringPolicy ManualTriggeringPolicy SizeBasedTriggeringPolicy TimeBasedRollingPolicy OnlyOnceErrorHandler FallbackErrorHandler AndFilter DenyAllFilter ExpressionFilter LevelMatchFilter LevelRangeFilter LocationInfoFilter MapFilter PropertyFilter StringMatchFilter

List of all members.

Public Member Functions

virtual ~OptionHandler ()
virtual void activateOptions (log4cxx::helpers::Pool &p)=0
 Activate the options that were previously set with calls to option setters.
virtual void setOption (const LogString &option, const LogString &value)=0
 Set option to value.

Detailed Description

A string based interface to configure package components.

Constructor & Destructor Documentation

virtual ~OptionHandler ( ) [inline, virtual]

Member Function Documentation

virtual void activateOptions ( log4cxx::helpers::Pool p) [pure virtual]

Activate the options that were previously set with calls to option setters.

This allows to defer activiation of the options until all options have been set. This is required for components which have related options that remain ambigous until all are set.

For example, the FileAppender has the File and Append options both of which are ambigous until the other is also set.

Implemented in PatternLayout, DailyRollingFileAppender, ODBCAppender, TimeBasedRollingPolicy, FileAppender, SocketHubAppender, Filter, XMLLayout, FilterBasedTriggeringPolicy, AppenderSkeleton, ExpressionFilter, RollingFileAppender, SMTPAppender, HTMLLayout, TelnetAppender, WriterAppender, FixedWindowRollingPolicy, RollingPolicyBase, SizeBasedTriggeringPolicy, SimpleLayout, FallbackErrorHandler, SyslogAppender, SocketAppenderSkeleton, OnlyOnceErrorHandler, RollingFileAppenderSkeleton, ManualTriggeringPolicy, ConsoleAppender, LocationInfoFilter, DateLayout, and NTEventLogAppender.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines