| org.picocontainer.ComponentMonitor
All known Subclasses: org.picocontainer.monitors.WriterComponentMonitor, org.picocontainer.monitors.ConsoleComponentMonitor, org.picocontainer.gems.monitors.Log4JComponentMonitor, org.picocontainer.gems.monitors.DotDependencyGraphComponentMonitor, org.picocontainer.monitors.AbstractComponentMonitor, org.picocontainer.gems.monitors.CommonsLoggingComponentMonitor, org.picocontainer.monitors.NullComponentMonitor, org.picocontainer.monitors.LifecycleComponentMonitor,
ComponentMonitor | public interface ComponentMonitor (Code) | | A component monitor is responsible for monitoring the component instantiation
and method invocation.
author: Paul Hammant author: Obie Fernandez author: Aslak Hellesøy author: Mauro Talevi |
Method Summary | |
void | instantiated(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Object instantiated, Object[] injected, long duration) Event thrown after the component has been instantiated using the given constructor. | Constructor<T> | instantiating(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor) | void | instantiationFailed(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Exception cause) | void | invocationFailed(Member member, Object instance, Exception cause) | void | invoked(PicoContainer container, ComponentAdapter> componentAdapter, Method method, Object instance, long duration) | void | invoking(PicoContainer container, ComponentAdapter> componentAdapter, Member member, Object instance) | void | lifecycleInvocationFailed(MutablePicoContainer container, ComponentAdapter> componentAdapter, Method method, Object instance, RuntimeException cause) | Object | noComponentFound(MutablePicoContainer container, Object componentKey) |
instantiated | void instantiated(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Object instantiated, Object[] injected, long duration)(Code) | | Event thrown after the component has been instantiated using the given constructor.
This should be called for both Constructor and Setter DI.
Parameters: container - Parameters: componentAdapter - Parameters: constructor - the Constructor used to instantiate the addComponent Parameters: instantiated - the component that was instantiated by PicoContainer Parameters: injected - the components during instantiation. Parameters: duration - the duration in milliseconds of the instantiation |
instantiating | Constructor<T> instantiating(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor)(Code) | | Event thrown as the component is being instantiated using the given constructor
Parameters: container - Parameters: componentAdapter - Parameters: constructor - the Constructor used to instantiate the addComponent @return the constructor to use in instantiation (nearly always the same one as passed in) |
instantiationFailed | void instantiationFailed(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Exception cause)(Code) | | Event thrown if the component instantiation failed using the given constructor
Parameters: container - Parameters: componentAdapter - Parameters: constructor - the Constructor used to instantiate the addComponent Parameters: cause - the Exception detailing the cause of the failure |
invocationFailed | void invocationFailed(Member member, Object instance, Exception cause)(Code) | | Event thrown if the component method invocation failed on the given instance
Parameters: member - Parameters: instance - the component instance Parameters: cause - the Exception detailing the cause of the failure |
invoked | void invoked(PicoContainer container, ComponentAdapter> componentAdapter, Method method, Object instance, long duration)(Code) | | Event thrown after the component method has been invoked on the given instance
Parameters: container - Parameters: componentAdapter - Parameters: method - the Method invoked on the component instance Parameters: instance - the component instance Parameters: duration - the duration in millis of the invocation |
invoking | void invoking(PicoContainer container, ComponentAdapter> componentAdapter, Member member, Object instance)(Code) | | Event thrown as the component method is being invoked on the given instance
Parameters: container - Parameters: componentAdapter - Parameters: member - Parameters: instance - the component instance |
lifecycleInvocationFailed | void lifecycleInvocationFailed(MutablePicoContainer container, ComponentAdapter> componentAdapter, Method method, Object instance, RuntimeException cause)(Code) | | Event thrown if a lifecycle method invocation - start, stop or dispose -
failed on the given instance
Parameters: container - Parameters: componentAdapter - Parameters: method - the lifecycle Method invoked on the component instance Parameters: instance - the component instance Parameters: cause - the RuntimeException detailing the cause of the failure |
|
|