org.objectweb.util.monolog.api
Interface HandlerFactory
- MonologFactory
public interface HandlerFactory
It permits to manage Handler instances.
- Sebastien Chassande-Barrioz
Handler | createHandler(String hn, String handlertype) - It retrieves a new instance of an handler which the type is specified
by the parameter.
|
Handler | getHandler(String handlername) - It retrieves the handler which the name is specified by the parameter
|
Handler[] | getHandlers() - It retrieves all handler managed by this factory.
|
Handler | removeHandler(String handlername) - It removes the handler which the name is specified by the parameter
|
createHandler
public Handler createHandler(String hn,
String handlertype)
It retrieves a new instance of an handler which the type is specified
by the parameter.
handlertype
- is the type of the parameter. The possible value are
defined in this interface by the XXX_HANDLER_TYPE constants.
- a new instance of an handler
getHandler
public Handler getHandler(String handlername)
It retrieves the handler which the name is specified by the parameter
handlername
- is the name of the handler
- an handler instance or a null value.
getHandlers
public Handler[] getHandlers()
It retrieves all handler managed by this factory.
- a set of Handler instance or an empty set.
removeHandler
public Handler removeHandler(String handlername)
It removes the handler which the name is specified by the parameter
handlername
- is the name of the handler
- the removed handler instance or a null value if it does not
exist.