|
![]() |
||||||||||
PREV NEXT | FRAMES NO FRAMES |
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.alternatives | |
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 and creates specific instructions on which constructor to use, along with which components and/or constants to provide as constructor arguments. |
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 |
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 | |
Object |
Parameter.resolveInstance(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
Retrieve the object from the Parameter that statisfies the expected type. |
boolean |
Parameter.isResolvable(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
Check if the Parameter can statisfy the expected type using the container. |
void |
Parameter.verify(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
Verify that the Parameter can statisfied the expected type using the container |
ComponentAdapter |
MutablePicoContainer.registerComponent(ComponentAdapter componentAdapter)
Register a component via a ComponentAdapter. |
void |
PicoVisitor.visitComponentAdapter(ComponentAdapter componentAdapter)
Visit a ComponentAdapter that has to accept the visitor. |
Uses of ComponentAdapter in org.picocontainer.alternatives |
Methods in org.picocontainer.alternatives that return ComponentAdapter | |
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponentImplementation(Object componentKey,
Class componentImplementation)
|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponentImplementation(Object componentKey,
Class componentImplementation,
Parameter[] parameters)
|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponentImplementation(Class componentImplementation)
|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponentInstance(Object componentInstance)
|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponentInstance(Object componentKey,
Object componentInstance)
|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponent(ComponentAdapter componentAdapter)
|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.unregisterComponent(Object componentKey)
|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.unregisterComponentByInstance(Object componentInstance)
|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.getComponentAdapter(Object componentKey)
|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.getComponentAdapterOfType(Class componentType)
|
ComponentAdapter |
ImmutablePicoContainer.getComponentAdapter(Object componentKey)
Deprecated. |
ComponentAdapter |
ImmutablePicoContainer.getComponentAdapterOfType(Class componentType)
Deprecated. |
ComponentAdapter |
EmptyPicoContainer.getComponentAdapter(Object componentKey)
|
ComponentAdapter |
EmptyPicoContainer.getComponentAdapterOfType(Class componentType)
|
Methods in org.picocontainer.alternatives with parameters of type ComponentAdapter | |
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponent(ComponentAdapter componentAdapter)
|
Constructors in org.picocontainer.alternatives with parameters of type ComponentAdapter | |
ImplementationHidingComponentAdapter(ComponentAdapter delegate,
boolean strict)
Deprecated. since 1.2, moved to package org.picocontainer.defaults |
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 in a bean style. |
class |
CachingComponentAdapter
ComponentAdapter implementation that caches the component instance. |
class |
ConstructorInjectionComponentAdapter
Instantiates components using Constructor Injection. |
class |
DecoratingComponentAdapter
Component adapter which decorates another adapter. |
class |
ImplementationHidingComponentAdapter
This component adapter makes it possible to hide the implementation of a real subject (behind a proxy) provided the key is an interface. |
class |
InstanceComponentAdapter
Component adapter which wraps a component instance. |
class |
InstantiatingComponentAdapter
This ComponentAdapter will instantiate a new object for each call to getComponentInstance(PicoContainer) . |
class |
MonitoringComponentAdapter
Abstract ComponentAdapter supporting a
ComponentMonitorStrategy . |
class |
SetterInjectionComponentAdapter
Instantiates components using empty constructors and Setter Injection. |
class |
SynchronizedComponentAdapter
|
Methods in org.picocontainer.defaults that return ComponentAdapter | |
ComponentAdapter |
ImplementationHidingComponentAdapterFactory.createComponentAdapter(Object componentKey,
Class componentImplementation,
Parameter[] parameters)
|
ComponentAdapter |
SetterInjectionComponentAdapterFactory.createComponentAdapter(Object componentKey,
Class componentImplementation,
Parameter[] parameters)
Create a SetterInjectionComponentAdapter . |
ComponentAdapter |
DecoratingComponentAdapter.getDelegate()
|
ComponentAdapter |
UnsatisfiableDependenciesException.getUnsatisfiableComponentAdapter()
|
ComponentAdapter |
DefaultComponentAdapterFactory.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 |
DecoratingComponentAdapterFactory.createComponentAdapter(Object componentKey,
Class componentImplementation,
Parameter[] parameters)
|
ComponentAdapter |
BeanPropertyComponentAdapterFactory.createComponentAdapter(Object componentKey,
Class componentImplementation,
Parameter[] parameters)
|
ComponentAdapter |
ConstructorInjectionComponentAdapterFactory.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 and creates specific instructions on which constructor to use, along with which components and/or constants to provide as constructor arguments. These "directives" are provided through an array of Parameter objects. Parameter[0] correspondes to the first constructor argument, Parameter[N] corresponds to the N+1th constructor argument. Tips for Parameter usage
|
ComponentAdapter |
DefaultPicoContainer.registerComponentImplementation(Object componentKey,
Class componentImplementation,
List parameters)
Same as DefaultPicoContainer.registerComponentImplementation(java.lang.Object, java.lang.Class, org.picocontainer.Parameter[])
but with parameters as a List . |
ComponentAdapter |
DefaultPicoContainer.unregisterComponentByInstance(Object componentInstance)
|
ComponentAdapter |
CachingComponentAdapterFactory.createComponentAdapter(Object componentKey,
Class componentImplementation,
Parameter[] parameters)
|
ComponentAdapter |
SynchronizedComponentAdapterFactory.createComponentAdapter(Object componentKey,
Class componentImplementation,
Parameter[] parameters)
|
Methods in org.picocontainer.defaults with parameters of type ComponentAdapter | |
boolean |
BasicComponentParameter.isResolvable(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
Check wether the given Parameter can be statisfied by the container. |
Object |
BasicComponentParameter.resolveInstance(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
|
void |
BasicComponentParameter.verify(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
|
Object |
CollectionComponentParameter.resolveInstance(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
Resolve the parameter for the expected type. |
boolean |
CollectionComponentParameter.isResolvable(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
Check for a successful dependency resolution of the parameter for the expected type. |
void |
CollectionComponentParameter.verify(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
Verify a successful dependency resolution of the parameter for the expected type. |
protected boolean |
CollectionComponentParameter.evaluate(ComponentAdapter adapter)
Evaluate whether the given component adapter will be part of the collective type. |
protected Map |
CollectionComponentParameter.getMatchingComponentAdapters(PicoContainer container,
ComponentAdapter adapter,
Class keyType,
Class valueType)
Collect the matching ComponentAdapter instances. |
Object |
ComponentParameter.resolveInstance(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
|
boolean |
ComponentParameter.isResolvable(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
|
void |
ComponentParameter.verify(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
|
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. |
Object |
ConstantParameter.resolveInstance(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
|
boolean |
ConstantParameter.isResolvable(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
|
void |
ConstantParameter.verify(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
Verify that the Parameter can statisfied the expected type using the container |
void |
VerifyingVisitor.visitComponentAdapter(ComponentAdapter componentAdapter)
|
void |
TraversalCheckingVisitor.visitComponentAdapter(ComponentAdapter componentAdapter)
|
Constructors in org.picocontainer.defaults with parameters of type ComponentAdapter | |
DecoratingComponentAdapter(ComponentAdapter delegate)
|
|
UnsatisfiableDependenciesException(ComponentAdapter instantiatingComponentAdapter,
Set unsatisfiableDependencies,
PicoContainer leafContainer)
|
|
UnsatisfiableDependenciesException(ComponentAdapter instantiatingComponentAdapter,
Class unsatisfiedDependencyType,
Set unsatisfiableDependencies,
PicoContainer leafContainer)
|
|
BeanPropertyComponentAdapter(ComponentAdapter delegate)
Construct a BeanPropertyComponentAdapter. |
|
ImplementationHidingComponentAdapter(ComponentAdapter delegate,
boolean strict)
Creates an ImplementationHidingComponentAdapter with a delegate |
|
CachingComponentAdapter(ComponentAdapter delegate)
|
|
CachingComponentAdapter(ComponentAdapter delegate,
ObjectReference instanceReference)
|
|
SynchronizedComponentAdapter(ComponentAdapter delegate)
|
|
![]() |
||||||||||
PREV NEXT | FRAMES NO FRAMES |