| java.lang.Object org.picocontainer.gems.monitors.CommonsLoggingComponentMonitor
CommonsLoggingComponentMonitor | public class CommonsLoggingComponentMonitor implements ComponentMonitor,Serializable(Code) | | A
ComponentMonitor which writes to a Commons Logging
Log Log instance.
The Log instance can either be injected or, if not set, the
LogFactory LogFactory will be used to retrieve it at every invocation of the monitor.
author: Paul Hammant author: Mauro Talevi |
Method Summary | |
protected Log | getLog(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) |
CommonsLoggingComponentMonitor | public CommonsLoggingComponentMonitor()(Code) | | Creates a CommonsLoggingComponentMonitor with no Log instance set.
The
LogFactory LogFactory will be used to retrieve the Log instance
at every invocation of the monitor.
|
CommonsLoggingComponentMonitor | public CommonsLoggingComponentMonitor(Class> logClass)(Code) | | Creates a CommonsLoggingComponentMonitor with a given Log instance class.
The class name is used to retrieve the Log instance.
Parameters: logClass - the class of the Log |
CommonsLoggingComponentMonitor | public CommonsLoggingComponentMonitor(String logName)(Code) | | Creates a CommonsLoggingComponentMonitor with a given Log instance name. It uses the
LogFactory LogFactory to create the Log instance.
Parameters: logName - the name of the Log |
CommonsLoggingComponentMonitor | public CommonsLoggingComponentMonitor(Log log)(Code) | | Creates a CommonsLoggingComponentMonitor with a given Log instance
Parameters: log - the Log to write to |
CommonsLoggingComponentMonitor | public CommonsLoggingComponentMonitor(Class> logClass, ComponentMonitor delegate)(Code) | | Creates a CommonsLoggingComponentMonitor with a given Log instance class.
The class name is used to retrieve the Log instance.
Parameters: logClass - the class of the Log Parameters: delegate - the delegate |
CommonsLoggingComponentMonitor | public CommonsLoggingComponentMonitor(String logName, ComponentMonitor delegate)(Code) | | Creates a CommonsLoggingComponentMonitor with a given Log instance name. It uses the
LogFactory LogFactory to create the Log instance.
Parameters: logName - the name of the Log Parameters: delegate - the delegate |
CommonsLoggingComponentMonitor | public CommonsLoggingComponentMonitor(Log log, ComponentMonitor delegate)(Code) | | Creates a CommonsLoggingComponentMonitor with a given Log instance
Parameters: log - the Log to write to Parameters: delegate - the delegate |
|
|