Uses of Interface
org.picocontainer.ComponentAdapter

Packages that use ComponentAdapter
org.picocontainer This package contains the core API for PicoContainer, a compact container for working with the dependency injection pattern. 
org.picocontainer.defaults This package contains the default implementation of the PicoContainer API
 

Uses of ComponentAdapter in org.picocontainer
 

Methods in org.picocontainer that return ComponentAdapter
 ComponentAdapter MutablePicoContainer.registerComponentImplementation(Object componentKey, Class componentImplementation)
          Register a component.
 ComponentAdapter MutablePicoContainer.registerComponentImplementation(Object componentKey, Class componentImplementation, Parameter[] parameters)
          Register a component.
 ComponentAdapter MutablePicoContainer.registerComponentImplementation(Class componentImplementation)
          Register a component using the componentImplementation as key.
 ComponentAdapter MutablePicoContainer.registerComponentInstance(Object componentInstance)
          Register an arbitrary object.
 ComponentAdapter MutablePicoContainer.registerComponentInstance(Object componentKey, Object componentInstance)
          Register an arbitrary object as a component in the container.
 ComponentAdapter MutablePicoContainer.registerComponent(ComponentAdapter componentAdapter)
          Register a component via a ComponentAdapter.
 ComponentAdapter MutablePicoContainer.unregisterComponent(Object componentKey)
          Unregister a component by key.
 ComponentAdapter MutablePicoContainer.unregisterComponentByInstance(Object componentInstance)
          Unregister a component by instance.
 ComponentAdapter Parameter.resolveAdapter(PicoContainer picoContainer, Class expectedType)
          Retrieve the component adapter that should be used to find the instance to be passed in for this parameter.
 ComponentAdapter PicoContainer.getComponentAdapter(Object componentKey)
          Find a component adapter associated with the specified key.
 ComponentAdapter PicoContainer.getComponentAdapterOfType(Class componentType)
          Find a component adapter associated with the specified type.
 

Methods in org.picocontainer with parameters of type ComponentAdapter
 ComponentAdapter MutablePicoContainer.registerComponent(ComponentAdapter componentAdapter)
          Register a component via a ComponentAdapter.
 void PicoContainer.addOrderedComponentAdapter(ComponentAdapter componentAdapter)
          Callback method from the implementation to keep track of the instantiation order.
 

Uses of ComponentAdapter in org.picocontainer.defaults
 

Classes in org.picocontainer.defaults that implement ComponentAdapter
 class AbstractComponentAdapter
          Base class for a ComponentAdapter with general functionality.
 class BeanPropertyComponentAdapter
          Decorating component adapter that can be used to set additional properties on a component.
 class CachingComponentAdapter
          This ComponentAdapter caches the instance.
 class ConstructorInjectionComponentAdapter
          Instantiates components using Constructor Injection.
 class DecoratingComponentAdapter
           
 class InstanceComponentAdapter
           
 class InstantiatingComponentAdapter
          This ComponentAdapter will instantiate a new object for each call to getComponentInstance().
 class SetterInjectionComponentAdapter
          Instantiates components using empty constructors and Setter Injection.
 class SynchronizedComponentAdapter
           
 

Methods in org.picocontainer.defaults that return ComponentAdapter
 ComponentAdapter BeanPropertyComponentAdapterFactory.createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters)
           
 ComponentAdapter CachingComponentAdapterFactory.createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters)
           
 ComponentAdapter ComponentAdapterFactory.createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters)
          Create a new component adapter based on the specified arguments.
 ComponentAdapter ComponentParameter.resolveAdapter(PicoContainer picoContainer, Class expectedType)
           
 ComponentAdapter ConstantParameter.resolveAdapter(PicoContainer picoContainer, Class expectedType)
           
 ComponentAdapter ConstructorInjectionComponentAdapterFactory.createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters)
           
 ComponentAdapter DecoratingComponentAdapter.getDelegate()
           
 ComponentAdapter DecoratingComponentAdapterFactory.createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters)
           
 ComponentAdapter DefaultComponentAdapterFactory.createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters)
           
 ComponentAdapter DefaultPicoContainer.getComponentAdapter(Object componentKey)
           
 ComponentAdapter DefaultPicoContainer.getComponentAdapterOfType(Class componentType)
           
 ComponentAdapter DefaultPicoContainer.registerComponent(ComponentAdapter componentAdapter)
          Register a component via a ComponentAdapter. Use this if you need fine grained control over what ComponentAdapter to use for a specific component. This method can be used to override the ComponentAdapter created by the ComponentAdapterFactory passed to the constructor of this container.
 ComponentAdapter DefaultPicoContainer.unregisterComponent(Object componentKey)
           
 ComponentAdapter DefaultPicoContainer.registerComponentInstance(Object component)
          Register an arbitrary object. The class of the object will be used as a key. Calling this method is equivalent to calling * registerComponentImplementation(componentImplementation, componentImplementation). The returned ComponentAdapter will be an InstanceComponentAdapter.
 ComponentAdapter DefaultPicoContainer.registerComponentInstance(Object componentKey, Object componentInstance)
          Register an arbitrary object as a component in the container. This is handy when other components in the same container have dependencies on this kind of object, but where letting the container manage and instantiate it is impossible.

Beware that too much use of this method is an antipattern. The returned ComponentAdapter will be an InstanceComponentAdapter.

 ComponentAdapter DefaultPicoContainer.registerComponentImplementation(Class componentImplementation)
          Register a component using the componentImplementation as key. Calling this method is equivalent to calling registerComponentImplementation(componentImplementation, componentImplementation). The returned ComponentAdapter will be instantiated by the ComponentAdapterFactory passed to the container's constructor.
 ComponentAdapter DefaultPicoContainer.registerComponentImplementation(Object componentKey, Class componentImplementation)
          Register a component. The returned ComponentAdapter will be instantiated by the ComponentAdapterFactory passed to the container's constructor.
 ComponentAdapter DefaultPicoContainer.registerComponentImplementation(Object componentKey, Class componentImplementation, Parameter[] parameters)
          Register a component. The returned ComponentAdapter will be instantiated by the ComponentAdapterFactory passed to the container's constructor.
 ComponentAdapter DefaultPicoContainer.registerComponentImplementation(Object componentKey, Class componentImplementation, List parameters)
           
 ComponentAdapter DefaultPicoContainer.unregisterComponentByInstance(Object componentInstance)
           
 ComponentAdapter SetterInjectionComponentAdapterFactory.createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters)
          Create a SetterInjectionComponentAdapter.
 ComponentAdapter SynchronizedComponentAdapterFactory.createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters)
           
 ComponentAdapter UnsatisfiableDependenciesException.getUnsatisfiableComponentAdapter()
           
 

Methods in org.picocontainer.defaults with parameters of type ComponentAdapter
 ComponentAdapter DefaultPicoContainer.registerComponent(ComponentAdapter componentAdapter)
          Register a component via a ComponentAdapter. Use this if you need fine grained control over what ComponentAdapter to use for a specific component. This method can be used to override the ComponentAdapter created by the ComponentAdapterFactory passed to the constructor of this container.
 void DefaultPicoContainer.addOrderedComponentAdapter(ComponentAdapter componentAdapter)
           
 

Constructors in org.picocontainer.defaults with parameters of type ComponentAdapter
BeanPropertyComponentAdapter(ComponentAdapter delegate)
           
CachingComponentAdapter(ComponentAdapter delegate)
           
CachingComponentAdapter(ComponentAdapter delegate, ObjectReference instanceReference)
           
DecoratingComponentAdapter(ComponentAdapter delegate)
           
SynchronizedComponentAdapter(ComponentAdapter delegate)
           
UnsatisfiableDependenciesException(ComponentAdapter instantiatingComponentAdapter, Set failedDependencies)
           
 



Copyright © 2003-2004 Codehaus. All Rights Reserved.