Package | Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
ComponentAdapter |
PicoContainer.getComponentAdapter(java.lang.Object componentKey)
Find a component adapter associated with the specified key.
|
ComponentAdapter |
PicoContainer.getComponentAdapterOfType(java.lang.Class componentType)
Find a component adapter associated with the specified type.
|
ComponentAdapter |
MutablePicoContainer.registerComponent(ComponentAdapter componentAdapter)
Register a component via a ComponentAdapter.
|
ComponentAdapter |
MutablePicoContainer.registerComponentImplementation(java.lang.Class componentImplementation)
Register a component using the componentImplementation as key.
|
ComponentAdapter |
MutablePicoContainer.registerComponentImplementation(java.lang.Object componentKey,
java.lang.Class componentImplementation)
Register a component.
|
ComponentAdapter |
MutablePicoContainer.registerComponentImplementation(java.lang.Object componentKey,
java.lang.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.registerComponentInstance(java.lang.Object componentInstance)
Register an arbitrary object.
|
ComponentAdapter |
MutablePicoContainer.registerComponentInstance(java.lang.Object componentKey,
java.lang.Object componentInstance)
Register an arbitrary object as a component in the container.
|
ComponentAdapter |
MutablePicoContainer.unregisterComponent(java.lang.Object componentKey)
Unregister a component by key.
|
ComponentAdapter |
MutablePicoContainer.unregisterComponentByInstance(java.lang.Object componentInstance)
Unregister a component by instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Parameter.isResolvable(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType)
Check if the Parameter can statisfy the expected type using the container.
|
ComponentAdapter |
MutablePicoContainer.registerComponent(ComponentAdapter componentAdapter)
Register a component via a ComponentAdapter.
|
java.lang.Object |
Parameter.resolveInstance(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType)
Retrieve the object from the Parameter that statisfies the expected type.
|
void |
Parameter.verify(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType)
Verify that the Parameter can statisfied the expected type using the container
|
void |
PicoVisitor.visitComponentAdapter(ComponentAdapter componentAdapter)
Visit a
ComponentAdapter that has to accept the visitor. |
Modifier and Type | Method and Description |
---|---|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.getComponentAdapter(java.lang.Object componentKey) |
ComponentAdapter |
EmptyPicoContainer.getComponentAdapter(java.lang.Object componentKey) |
ComponentAdapter |
ImmutablePicoContainer.getComponentAdapter(java.lang.Object componentKey)
Deprecated.
|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.getComponentAdapterOfType(java.lang.Class componentType) |
ComponentAdapter |
EmptyPicoContainer.getComponentAdapterOfType(java.lang.Class componentType) |
ComponentAdapter |
ImmutablePicoContainer.getComponentAdapterOfType(java.lang.Class componentType)
Deprecated.
|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponent(ComponentAdapter componentAdapter) |
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponentImplementation(java.lang.Class componentImplementation) |
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponentImplementation(java.lang.Object componentKey,
java.lang.Class componentImplementation) |
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponentImplementation(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters) |
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponentInstance(java.lang.Object componentInstance) |
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponentInstance(java.lang.Object componentKey,
java.lang.Object componentInstance) |
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.unregisterComponent(java.lang.Object componentKey) |
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.unregisterComponentByInstance(java.lang.Object componentInstance) |
Modifier and Type | Method and Description |
---|---|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponent(ComponentAdapter componentAdapter) |
Constructor and Description |
---|
ImplementationHidingComponentAdapter(ComponentAdapter delegate,
boolean strict)
Deprecated.
since 1.2, moved to package
org.picocontainer.defaults |
Modifier and Type | Class and Description |
---|---|
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 |
Modifier and Type | Field and Description |
---|---|
private ComponentAdapter |
DecoratingComponentAdapter.delegate |
private ComponentAdapter |
UnsatisfiableDependenciesException.instantiatingComponentAdapter |
Modifier and Type | Method and Description |
---|---|
ComponentAdapter |
ComponentAdapterFactory.createComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters)
Create a new component adapter based on the specified arguments.
|
ComponentAdapter |
CachingComponentAdapterFactory.createComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters) |
ComponentAdapter |
DecoratingComponentAdapterFactory.createComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters) |
ComponentAdapter |
ImplementationHidingComponentAdapterFactory.createComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters) |
ComponentAdapter |
BeanPropertyComponentAdapterFactory.createComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters)
Create a new component adapter based on the specified arguments.
|
ComponentAdapter |
ConstructorInjectionComponentAdapterFactory.createComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters) |
ComponentAdapter |
DefaultComponentAdapterFactory.createComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters) |
ComponentAdapter |
SetterInjectionComponentAdapterFactory.createComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters)
Create a
SetterInjectionComponentAdapter . |
ComponentAdapter |
SynchronizedComponentAdapterFactory.createComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters) |
ComponentAdapter |
DefaultPicoContainer.getComponentAdapter(java.lang.Object componentKey) |
ComponentAdapter |
DefaultPicoContainer.getComponentAdapterOfType(java.lang.Class componentType) |
ComponentAdapter |
DecoratingComponentAdapter.getDelegate() |
private ComponentAdapter |
BasicComponentParameter.getTargetAdapter(PicoContainer container,
java.lang.Class expectedType,
ComponentAdapter excludeAdapter) |
ComponentAdapter |
UnsatisfiableDependenciesException.getUnsatisfiableComponentAdapter() |
ComponentAdapter |
DefaultPicoContainer.registerComponent(ComponentAdapter componentAdapter)
Register a component via a ComponentAdapter.
|
ComponentAdapter |
DefaultPicoContainer.registerComponentImplementation(java.lang.Class componentImplementation)
Register a component using the componentImplementation as key.
|
ComponentAdapter |
DefaultPicoContainer.registerComponentImplementation(java.lang.Object componentKey,
java.lang.Class componentImplementation)
Register a component.
|
ComponentAdapter |
DefaultPicoContainer.registerComponentImplementation(java.lang.Object componentKey,
java.lang.Class componentImplementation,
java.util.List parameters)
Same as
DefaultPicoContainer.registerComponentImplementation(java.lang.Object, java.lang.Class, org.picocontainer.Parameter[])
but with parameters as a List . |
ComponentAdapter |
DefaultPicoContainer.registerComponentImplementation(java.lang.Object componentKey,
java.lang.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 |
DefaultPicoContainer.registerComponentInstance(java.lang.Object component)
Register an arbitrary object.
|
ComponentAdapter |
DefaultPicoContainer.registerComponentInstance(java.lang.Object componentKey,
java.lang.Object componentInstance)
Register an arbitrary object as a component in the container.
|
private ComponentAdapter |
BasicComponentParameter.resolveAdapter(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType) |
ComponentAdapter |
DefaultPicoContainer.unregisterComponent(java.lang.Object componentKey) |
ComponentAdapter |
DefaultPicoContainer.unregisterComponentByInstance(java.lang.Object componentInstance) |
Modifier and Type | Method and Description |
---|---|
private void |
DefaultPicoContainer.addOrderedComponentAdapter(ComponentAdapter componentAdapter) |
protected boolean |
CollectionComponentParameter.evaluate(ComponentAdapter adapter)
Evaluate whether the given component adapter will be part of the collective type.
|
private java.lang.Object |
DefaultPicoContainer.getInstance(ComponentAdapter componentAdapter) |
protected java.util.Map |
CollectionComponentParameter.getMatchingComponentAdapters(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class keyType,
java.lang.Class valueType)
Collect the matching ComponentAdapter instances.
|
private ComponentAdapter |
BasicComponentParameter.getTargetAdapter(PicoContainer container,
java.lang.Class expectedType,
ComponentAdapter excludeAdapter) |
boolean |
BasicComponentParameter.isResolvable(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType)
Check wether the given Parameter can be statisfied by the container.
|
boolean |
CollectionComponentParameter.isResolvable(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType)
Check for a successful dependency resolution of the parameter for the expected type.
|
boolean |
ComponentParameter.isResolvable(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType) |
boolean |
ConstantParameter.isResolvable(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType) |
ComponentAdapter |
DefaultPicoContainer.registerComponent(ComponentAdapter componentAdapter)
Register a component via a ComponentAdapter.
|
private ComponentAdapter |
BasicComponentParameter.resolveAdapter(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType) |
java.lang.Object |
BasicComponentParameter.resolveInstance(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType) |
java.lang.Object |
CollectionComponentParameter.resolveInstance(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType)
Resolve the parameter for the expected type.
|
java.lang.Object |
ComponentParameter.resolveInstance(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType) |
java.lang.Object |
ConstantParameter.resolveInstance(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType) |
void |
BasicComponentParameter.verify(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType) |
void |
CollectionComponentParameter.verify(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType)
Verify a successful dependency resolution of the parameter for the expected type.
|
void |
ComponentParameter.verify(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType) |
void |
ConstantParameter.verify(PicoContainer container,
ComponentAdapter adapter,
java.lang.Class expectedType)
Verify that the Parameter can statisfied the expected type using the container
|
void |
TraversalCheckingVisitor.visitComponentAdapter(ComponentAdapter componentAdapter) |
void |
VerifyingVisitor.visitComponentAdapter(ComponentAdapter componentAdapter) |
void |
VerifyingVisitor.ComponentAdapterCollector.visitComponentAdapter(ComponentAdapter componentAdapter) |
Constructor and Description |
---|
BeanPropertyComponentAdapter(ComponentAdapter delegate)
Construct a BeanPropertyComponentAdapter.
|
CachingComponentAdapter(ComponentAdapter delegate) |
CachingComponentAdapter(ComponentAdapter delegate,
ObjectReference instanceReference) |
DecoratingComponentAdapter(ComponentAdapter delegate) |
ImplementationHidingComponentAdapter(ComponentAdapter delegate,
boolean strict)
Creates an ImplementationHidingComponentAdapter with a delegate
|
SynchronizedComponentAdapter(ComponentAdapter delegate) |
UnsatisfiableDependenciesException(ComponentAdapter instantiatingComponentAdapter,
java.lang.Class unsatisfiedDependencyType,
java.util.Set unsatisfiableDependencies,
PicoContainer leafContainer) |
UnsatisfiableDependenciesException(ComponentAdapter instantiatingComponentAdapter,
java.util.Set unsatisfiableDependencies,
PicoContainer leafContainer) |