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 |
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.
|
void |
PicoVisitor.visitParameter(Parameter parameter)
Visit a
Parameter that has to accept the visitor. |
Modifier and Type | Method and Description |
---|---|
ComponentAdapter |
AbstractDelegatingMutablePicoContainer.registerComponentImplementation(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters) |
Modifier and Type | Class and Description |
---|---|
class |
BasicComponentParameter
A BasicComponentParameter should be used to pass in a particular component as argument to a
different component's constructor.
|
class |
CollectionComponentParameter
A CollectionComponentParameter should be used to support inject an
Array , a
Collection or Map of components automatically. |
class |
ComponentParameter
A ComponentParameter should be used to pass in a particular component as argument to a
different component's constructor.
|
class |
ConstantParameter
A ConstantParameter should be used to pass in "constant" arguments to constructors.
|
Modifier and Type | Field and Description |
---|---|
private Parameter |
ComponentParameter.collectionParameter |
protected Parameter[] |
InstantiatingComponentAdapter.parameters
The parameters to use for initialization.
|
Modifier and Type | Method and Description |
---|---|
protected Parameter[] |
InstantiatingComponentAdapter.createDefaultParameters(java.lang.Class[] parameters)
Create default parameters for the given types.
|
private Parameter[] |
SetterInjectionComponentAdapter.getMatchingParameterListForSetters(PicoContainer container) |
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.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.
|
void |
TraversalCheckingVisitor.visitParameter(Parameter parameter) |
void |
VerifyingVisitor.ComponentAdapterCollector.visitParameter(Parameter parameter) |
Constructor and Description |
---|
ComponentParameter(java.lang.Object componentKey,
Parameter collectionParameter) |
ConstructorInjectionComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters)
Creates a ConstructorInjectionComponentAdapter with key, implementation and parameters
|
ConstructorInjectionComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses)
Creates a ConstructorInjectionComponentAdapter
|
ConstructorInjectionComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses,
ComponentMonitor monitor)
Creates a ConstructorInjectionComponentAdapter
|
ConstructorInjectionComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses,
ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy)
Creates a ConstructorInjectionComponentAdapter
|
InstantiatingComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses)
Constructs a new ComponentAdapter for the given key and implementation.
|
InstantiatingComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses,
ComponentMonitor monitor)
Constructs a new ComponentAdapter for the given key and implementation.
|
InstantiatingComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses,
ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy)
Constructs a new ComponentAdapter for the given key and implementation.
|
SetterInjectionComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters)
Constructs a SetterInjectionComponentAdapter with key, implementation and parameters.
|
SetterInjectionComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses)
Constructs a SetterInjectionComponentAdapter with a
DelegatingComponentMonitor as default. |
SetterInjectionComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses,
ComponentMonitor monitor)
Constructs a SetterInjectionComponentAdapter
|
SetterInjectionComponentAdapter(java.lang.Object componentKey,
java.lang.Class componentImplementation,
Parameter[] parameters,
boolean allowNonPublicClasses,
ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy)
Constructs a SetterInjectionComponentAdapter
|