org.objectweb.util.monolog.wrapper.config
Class BasicHandler
java.lang.Object
org.objectweb.util.monolog.wrapper.config.BasicHandler
- All Implemented Interfaces:
- Serializable, Handler
public class BasicHandler
- extends Object
- implements Handler, Serializable
This class is a basic implementation the Handler interface. It is not linked
to any underlying log system. Therefore all attributes are stored into
internal struture.
- Author:
- Sebastien Chassande-Barrioz
- See Also:
- Serialized Form
|
Field Summary |
protected HashMap |
attributes
The attributes of the handler are listed by this field. |
protected String |
name
The name of the handler |
protected String |
type
The type of the handler |
| Fields inherited from interface org.objectweb.util.monolog.api.Handler |
APPEND_MODE_ATTRIBUTE, BUFFER_ATTRIBUTE, CONSOLE_HANDLER_TYPE, FILE_HANDLER_TYPE, FILE_NUMBER_ATTRIBUTE, GENERIC_HANDLER_TYPE, JMX_HANDLER_TYPE, LEVEL_ATTRIBUTE, LOGGER_HANDLER_TYPE, MAX_SIZE_ATTRIBUTE, OUTPUT_ATTRIBUTE, PATTERN_ATTRIBUTE, ROLLING_FILE_HANDLER_TYPE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected String name
- The name of the handler
attributes
protected HashMap attributes
- The attributes of the handler are listed by this field.
key = atribute name
value = attribute value
type
protected String type
- The type of the handler
BasicHandler
public BasicHandler(String n,
String t)
getAttributes
public Map getAttributes()
setAttributes
public void setAttributes(Map properties)
getName
public String getName()
- Specified by:
getName in interface Handler
setName
public void setName(String n)
- Specified by:
setName in interface Handler
getType
public String getType()
- Specified by:
getType in interface Handler
getAttributeNames
public String[] getAttributeNames()
- Specified by:
getAttributeNames in interface Handler
getAttribute
public Object getAttribute(String key)
- Specified by:
getAttribute in interface Handler
setAttribute
public Object setAttribute(String key,
Object value)
- Specified by:
setAttribute in interface Handler
Copyright © 2012 OW2 Consortium. All Rights Reserved.