| java.lang.Object org.picocontainer.gems.monitors.Log4JComponentMonitor
Log4JComponentMonitor | public class Log4JComponentMonitor implements ComponentMonitor,Serializable(Code) | | A
org.picocontainer.ComponentMonitor which writes to a Log4J
org.apache.log4j.Logger instance.
The Logger instance can either be injected or, if not set, the
LogManager LogManager will be used to retrieve it at every invocation of the monitor.
author: Paul Hammant author: Mauro Talevi |
Method Summary | |
protected Logger | getLogger(Member member) | public void | instantiated(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Object instantiated, Object[] parameters, long duration) | public Constructor<T> | instantiating(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor) | public void | instantiationFailed(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Exception cause) | public void | invocationFailed(Member member, Object instance, Exception cause) | public void | invoked(PicoContainer container, ComponentAdapter> componentAdapter, Method method, Object instance, long duration) | public void | invoking(PicoContainer container, ComponentAdapter> componentAdapter, Member member, Object instance) | public void | lifecycleInvocationFailed(MutablePicoContainer container, ComponentAdapter> componentAdapter, Method method, Object instance, RuntimeException cause) | public Object | noComponentFound(MutablePicoContainer container, Object componentKey) |
Log4JComponentMonitor | public Log4JComponentMonitor()(Code) | | Creates a Log4JComponentMonitor with no Logger instance set.
The
LogManager LogManager will be used to retrieve the Logger instance
at every invocation of the monitor.
|
Log4JComponentMonitor | public Log4JComponentMonitor(Class> loggerClass)(Code) | | Creates a Log4JComponentMonitor with a given Logger instance class.
The class name is used to retrieve the Logger instance.
Parameters: loggerClass - the class of the Logger |
Log4JComponentMonitor | public Log4JComponentMonitor(String loggerName)(Code) | | Creates a Log4JComponentMonitor with a given Logger instance name. It uses the
org.apache.log4j.LogManager LogManager to create the Logger instance.
Parameters: loggerName - the name of the Log |
Log4JComponentMonitor | public Log4JComponentMonitor(Logger logger)(Code) | | Creates a Log4JComponentMonitor with a given Logger instance
Parameters: logger - the Logger to write to |
Log4JComponentMonitor | public Log4JComponentMonitor(Class> loggerClass, ComponentMonitor delegate)(Code) | | Creates a Log4JComponentMonitor with a given Logger instance class.
The class name is used to retrieve the Logger instance.
Parameters: loggerClass - the class of the Logger Parameters: delegate - the delegate |
Log4JComponentMonitor | public Log4JComponentMonitor(String loggerName, ComponentMonitor delegate)(Code) | | Creates a Log4JComponentMonitor with a given Logger instance name. It uses the
org.apache.log4j.LogManager LogManager to create the Logger instance.
Parameters: loggerName - the name of the Log Parameters: delegate - the delegate |
Log4JComponentMonitor | public Log4JComponentMonitor(Logger logger, ComponentMonitor delegate)(Code) | | Creates a Log4JComponentMonitor with a given Logger instance
Parameters: logger - the Logger to write to Parameters: delegate - the delegate |
|
|