org.picocontainer.gems.monitors
Class ComponentDependencyMonitor

java.lang.Object
  extended by org.picocontainer.monitors.AbstractComponentMonitor
      extended by org.picocontainer.gems.monitors.ComponentDependencyMonitor
All Implemented Interfaces:
Serializable, ComponentMonitor, ComponentMonitorStrategy

public final class ComponentDependencyMonitor
extends AbstractComponentMonitor

Understands how to capture component dependency information from picocontainer.

Author:
Peter Barry, Kent R. Spillner
See Also:
Serialized Form

Nested Class Summary
static class ComponentDependencyMonitor.Dependency
          Understands which other classes are required to instantiate a component.
 
Constructor Summary
ComponentDependencyMonitor(ComponentDependencyListener listener)
           
 
Method Summary
<T> 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.
 
Methods inherited from class org.picocontainer.monitors.AbstractComponentMonitor
changeMonitor, currentMonitor, instantiating, instantiationFailed, invocationFailed, invoked, invoking, lifecycleInvocationFailed, newInjectionFactory, noComponentFound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentDependencyMonitor

public ComponentDependencyMonitor(ComponentDependencyListener listener)
Method Detail

instantiated

public <T> void instantiated(PicoContainer container,
                             ComponentAdapter<T> componentAdapter,
                             Constructor<T> constructor,
                             Object instantiated,
                             Object[] injected,
                             long duration)
Description copied from interface: ComponentMonitor
Event thrown after the component has been instantiated using the given constructor. This should be called for both Constructor and Setter DI.

Specified by:
instantiated in interface ComponentMonitor
Overrides:
instantiated in class AbstractComponentMonitor
constructor - the Constructor used to instantiate the addComponent
instantiated - the component that was instantiated by PicoContainer
injected - the components during instantiation.
duration - the duration in milliseconds of the instantiation


Copyright © 2003-2010 Codehaus. All Rights Reserved.