Package | Description |
---|---|
org.picocontainer |
This package contains the core API for PicoContainer, a compact container for working with the
dependency injection pattern.
|
org.picocontainer.adapters | |
org.picocontainer.behaviors |
BehaviorFactories make Behaviors which change aspects of component implementations and instances
|
org.picocontainer.classname | |
org.picocontainer.containers |
Containers are the main user entry point for PicoContainer.
|
org.picocontainer.defaults | |
org.picocontainer.defaults.issues | |
org.picocontainer.injectors |
InjectionFactories make Injectors which implement specific types of dependency injection
|
org.picocontainer.lifecycle |
Alternative implementations of lifecycle strategy for use with a container.
|
org.picocontainer.monitors |
A Monitor is something PicoContainer uses to inform on events in component instantiation and lifecycle.
|
org.picocontainer.parameters | |
org.picocontainer.tck | |
org.picocontainer.visitors |
Modifier and Type | Interface and Description |
---|---|
interface |
Behavior<T>
Behaviors modify the components created by a Injector with additional behaviors
|
interface |
Injector<T>
Implementers are responsible for instantiating and injecting dependancies into
Constructors, Methods and Fields.
|
Modifier and Type | Class and Description |
---|---|
static class |
DefaultPicoContainer.KnowsContainerAdapter<T> |
static class |
DefaultPicoContainer.LateInstance |
Modifier and Type | Field and Description |
---|---|
protected List<ComponentAdapter<?>> |
DefaultPicoContainer.orderedComponentAdapters |
Modifier and Type | Method and Description |
---|---|
<U extends ComponentAdapter> |
ComponentAdapter.findAdapterOfType(Class<U> adapterType)
Locates a component adapter of type componentAdapterType in the ComponentAdapter chain.
|
<U extends ComponentAdapter> |
DefaultPicoContainer.KnowsContainerAdapter.findAdapterOfType(Class<U> adapterType) |
Modifier and Type | Method and Description |
---|---|
<T> ComponentAdapter<T> |
BehaviorFactory.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
ComponentFactory.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
Create a new component adapter based on the specified arguments.
|
ComponentAdapter |
PicoBuilderTestCase.CustomComponentFactory.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class componentImplementation,
Parameter... parameters) |
ComponentAdapter<?> |
Parameter.Resolver.getComponentAdapter() |
ComponentAdapter<?> |
Parameter.NotResolved.getComponentAdapter() |
ComponentAdapter<?> |
Parameter.DelegateResolver.getComponentAdapter() |
ComponentAdapter<?> |
Parameter.ValueResolver.getComponentAdapter() |
<T> ComponentAdapter<T> |
PicoContainer.getComponentAdapter(Class<T> componentType,
Class<? extends Annotation> binding)
Find a component adapter associated with the specified type and binding type.
|
<T> ComponentAdapter<T> |
DefaultPicoContainer.getComponentAdapter(Class<T> componentType,
Class<? extends Annotation> binding)
Find a component adapter associated with the specified type and binding type.
|
<T> ComponentAdapter<T> |
PicoContainer.getComponentAdapter(Class<T> componentType,
NameBinding componentNameBinding)
Find a component adapter associated with the specified type and binding name.
|
<T> ComponentAdapter<T> |
DefaultPicoContainer.getComponentAdapter(Class<T> componentType,
NameBinding componentNameBinding)
Find a component adapter associated with the specified type and binding name.
|
ComponentAdapter<?> |
PicoContainer.getComponentAdapter(Object componentKey)
Find a component adapter associated with the specified key.
|
ComponentAdapter<?> |
DefaultPicoContainer.getComponentAdapter(Object componentKey)
Find a component adapter associated with the specified key.
|
ComponentAdapter<T> |
ComponentAdapter.getDelegate()
Component adapters may be nested in a chain, and this method is used to grab the next ComponentAdapter in the chain.
|
ComponentAdapter |
DefaultPicoContainer.KnowsContainerAdapter.getDelegate() |
<T> ComponentAdapter<T> |
MutablePicoContainer.removeComponent(Object componentKey)
Unregister a component by key.
|
<T> ComponentAdapter<T> |
DefaultPicoContainer.removeComponent(Object componentKey)
Unregister a component by key.
|
<T> ComponentAdapter<T> |
MutablePicoContainer.removeComponentByInstance(T componentInstance)
Unregister a component by instance.
|
<T> ComponentAdapter<T> |
DefaultPicoContainer.removeComponentByInstance(T componentInstance)
Unregister a component by instance.
|
Modifier and Type | Method and Description |
---|---|
Collection<ComponentAdapter<?>> |
PicoContainer.getComponentAdapters()
Retrieve all the component adapters inside this container.
|
Collection<ComponentAdapter<?>> |
DefaultPicoContainer.getComponentAdapters()
Retrieve all the component adapters inside this container.
|
<T> List<ComponentAdapter<T>> |
PicoContainer.getComponentAdapters(Class<T> componentType)
Retrieve all component adapters inside this container that are associated with the specified type.
|
<T> List<ComponentAdapter<T>> |
DefaultPicoContainer.getComponentAdapters(Class<T> componentType)
Retrieve all component adapters inside this container that are associated with the specified type.
|
<T> List<ComponentAdapter<T>> |
PicoContainer.getComponentAdapters(Class<T> componentType,
Class<? extends Annotation> binding)
Retrieve all component adapters inside this container that are associated with the specified type and binding type.
|
<T> List<ComponentAdapter<T>> |
DefaultPicoContainer.getComponentAdapters(Class<T> componentType,
Class<? extends Annotation> binding)
Retrieve all component adapters inside this container that are associated with the specified type and binding type.
|
protected Map<Object,ComponentAdapter<?>> |
DefaultPicoContainer.getComponentKeyToAdapterCache() |
protected Set<ComponentAdapter<?>> |
DefaultPicoContainer.getModifiableComponentAdapterList() |
protected List<ComponentAdapter<?>> |
DefaultPicoContainer.getOrderedComponentAdapters() |
Modifier and Type | Method and Description |
---|---|
MutablePicoContainer |
MutablePicoContainer.addAdapter(ComponentAdapter<?> componentAdapter)
Register a component via a ComponentAdapter.
|
MutablePicoContainer |
DefaultPicoContainer.addAdapter(ComponentAdapter<?> componentAdapter)
Register a component via a ComponentAdapter.
|
MutablePicoContainer |
DefaultPicoContainer.addAdapter(ComponentAdapter<?> componentAdapter,
Properties properties) |
protected MutablePicoContainer |
DefaultPicoContainer.addAdapterInternal(ComponentAdapter<?> componentAdapter) |
<T> ComponentAdapter<T> |
BehaviorFactory.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
protected Object |
DefaultPicoContainer.decorateComponent(Object component,
ComponentAdapter<?> componentAdapter)
This is invoked when getComponent(..) is called.
|
protected void |
DefaultPicoContainer.instantiateComponentAsIsStartable(ComponentAdapter<?> adapter) |
<T> void |
ComponentMonitor.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.
|
<T> Constructor<T> |
ComponentMonitor.instantiating(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor)
Event thrown as the component is being instantiated using the given constructor
|
<T> void |
ComponentMonitor.instantiationFailed(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Exception cause)
Event thrown if the component instantiation failed using the given constructor
|
void |
ComponentMonitor.invoked(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
long duration,
Object[] args,
Object retVal)
Event thrown after the component method has been invoked on the given instance
|
Object |
ComponentMonitor.invoking(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
Object[] args)
Event thrown as the component method is being invoked on the given instance
|
boolean |
DefaultPicoContainerTestCase.FailingLifecycleStrategy.isLazy(ComponentAdapter<?> adapter) |
boolean |
LifecycleStrategy.isLazy(ComponentAdapter<?> adapter)
Is a component eager (not lazy) in that it should start when start() or equivalent is called,
or lazy (it will only start on first getComponent() ).
|
boolean |
Parameter.isResolvable(PicoContainer container,
ComponentAdapter<?> forAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Deprecated.
|
void |
ComponentMonitor.lifecycleInvocationFailed(MutablePicoContainer container,
ComponentAdapter<?> componentAdapter,
Method method,
Object instance,
RuntimeException cause)
Event thrown if a lifecycle method invocation - start, stop or dispose -
failed on the given instance
|
protected void |
DefaultPicoContainer.potentiallyStartAdapter(ComponentAdapter<?> adapter) |
Parameter.Resolver |
Parameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Check if the Parameter can satisfy the expected type using the container.
|
Parameter.Resolver |
Parameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Check if the Parameter can satisfy the expected type using the container.
|
Object |
Parameter.resolveInstance(PicoContainer container,
ComponentAdapter<?> forAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Deprecated.
|
void |
Parameter.verify(PicoContainer container,
ComponentAdapter<?> adapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Verify that the Parameter can satisfy the expected type using the container
|
void |
PicoVisitor.visitComponentAdapter(ComponentAdapter<?> componentAdapter)
Visit a
ComponentAdapter that has to accept the visitor. |
Constructor and Description |
---|
KnowsContainerAdapter(ComponentAdapter<T> ca,
PicoContainer ctr) |
ValueResolver(boolean resolvable,
Object value,
ComponentAdapter<?> adapter) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractAdapter<T>
Base class for a ComponentAdapter with general functionality.
|
class |
InstanceAdapter<T>
Component adapter which wraps a component instance.
|
class |
NullCA |
static class |
SimpleNamedBindingAnnotationTestCase.FieldInjector<T> |
Modifier and Type | Method and Description |
---|---|
<U extends ComponentAdapter> |
AbstractAdapter.findAdapterOfType(Class<U> adapterType) |
Modifier and Type | Method and Description |
---|---|
<T> ComponentAdapter<T> |
SimpleNamedBindingAnnotationTestCase.FieldInjection.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
ComponentAdapter |
NullCA.findAdapterOfType(Class adapterType) |
ComponentAdapter |
NullCA.getDelegate() |
ComponentAdapter<T> |
AbstractAdapter.getDelegate() |
protected ComponentAdapter |
InstanceAdapterTestCase.prepDEF_verifyDoesNotInstantiate(MutablePicoContainer picoContainer)
Prepare the test verifyDoesNotInstantiate.
|
protected ComponentAdapter |
InstanceAdapterTestCase.prepDEF_verifyWithoutDependencyWorks(MutablePicoContainer picoContainer)
Prepare the test verifyWithoutDependencyWorks.
|
protected ComponentAdapter |
InstanceAdapterTestCase.prepDEF_visitable()
Prepare the test visitable.
|
protected ComponentAdapter |
InstanceAdapterTestCase.prepSER_isSerializable(MutablePicoContainer picoContainer)
Prepare the test isSerializable.
|
protected ComponentAdapter |
InstanceAdapterTestCase.prepSER_isXStreamSerializable(MutablePicoContainer picoContainer)
Prepare the test isXStreamSerializable.
|
Modifier and Type | Method and Description |
---|---|
boolean |
InstanceAdapter.isLazy(ComponentAdapter<?> adapter) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractBehavior<T>
Component adapter which decorates another adapter.
|
class |
Automated<T> |
class |
Cached<T>
ComponentAdapter implementation that caches the component instance. |
class |
Decorated<T> |
class |
FieldDecorated |
class |
Guarded<T>
behaviour for allows components to be guarded by another component
|
class |
HiddenImplementation<T>
This component adapter makes it possible to hide the implementation
of a real subject (behind a proxy) provided the key is an interface.
|
class |
Intercepted<T> |
class |
Locked<T> |
class |
PropertyApplicator<T>
Decorating component adapter that can be used to set additional properties
on a component in a bean style.
|
class |
Stored<T> |
class |
Synchronized<T>
Component Adapter that uses java synchronized around getComponentInstance().
|
class |
ThreadCached<T>
This behavior supports caches values per thread.
|
Modifier and Type | Field and Description |
---|---|
protected ComponentAdapter<T> |
AbstractBehavior.delegate |
Modifier and Type | Method and Description |
---|---|
<U extends ComponentAdapter> |
AbstractBehavior.findAdapterOfType(Class<U> adapterType) |
Modifier and Type | Method and Description |
---|---|
ComponentAdapter |
Decorating.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter adapter) |
ComponentAdapter |
FieldDecorating.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter adapter) |
ComponentAdapter |
ImplementationHiding.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter adapter) |
ComponentAdapter |
Automating.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter adapter) |
ComponentAdapter |
AdaptingBehavior.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter adapter) |
<T> ComponentAdapter<T> |
AbstractBehaviorFactory.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
OptInCaching.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
ThreadCaching.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
Synchronizing.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
Storing.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
Caching.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
Guarding.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
PropertyApplying.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
Locking.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
AbstractBehaviorFactory.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
OptInCaching.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
ThreadCaching.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
Synchronizing.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
Create a new component adapter based on the specified arguments.
|
<T> ComponentAdapter<T> |
Storing.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
Caching.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
Guarding.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
PropertyApplying.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
Intercepting.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
Locking.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
Create a new component adapter based on the specified arguments.
|
ComponentAdapter |
Decorating.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class componentImplementation,
Parameter... parameters) |
ComponentAdapter |
FieldDecorating.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class componentImplementation,
Parameter... parameters) |
ComponentAdapter |
ImplementationHiding.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class componentImplementation,
Parameter... parameters) |
ComponentAdapter |
Automating.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class componentImplementation,
Parameter... parameters) |
ComponentAdapter |
AdaptingBehavior.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class componentImplementation,
Parameter... parameters) |
ComponentAdapter<T> |
AbstractBehavior.getDelegate() |
protected ComponentAdapter |
SynchronizedTestCase.makeComponentAdapter(ComponentAdapter componentAdapter) |
protected ComponentAdapter |
LockedTestCase.makeComponentAdapter(ComponentAdapter componentAdapter) |
Modifier and Type | Method and Description |
---|---|
ComponentAdapter |
Decorating.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter adapter) |
ComponentAdapter |
FieldDecorating.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter adapter) |
ComponentAdapter |
ImplementationHiding.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter adapter) |
ComponentAdapter |
Automating.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter adapter) |
ComponentAdapter |
AdaptingBehavior.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter adapter) |
<T> ComponentAdapter<T> |
AbstractBehaviorFactory.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
OptInCaching.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
ThreadCaching.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
Synchronizing.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
Storing.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
Caching.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
Guarding.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
PropertyApplying.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
Locking.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
static Behavior |
Behavior.cached(ComponentAdapter delegate) |
static Behavior |
Behavior.cached(ComponentAdapter delegate,
ObjectReference instanceReference) |
static Behavior |
Behavior.decorated(ComponentAdapter delegate,
org.picocontainer.behaviors.Decorated.Decorator decorator) |
boolean |
AbstractBehavior.isLazy(ComponentAdapter<?> adapter) |
protected ComponentAdapter |
SynchronizedTestCase.makeComponentAdapter(ComponentAdapter componentAdapter) |
protected ComponentAdapter |
LockedTestCase.makeComponentAdapter(ComponentAdapter componentAdapter) |
Modifier and Type | Method and Description |
---|---|
ComponentAdapter<?> |
DefaultClassLoadingPicoContainer.getComponentAdapter(Object componentKey) |
Modifier and Type | Method and Description |
---|---|
MutablePicoContainer |
DefaultClassLoadingPicoContainer.addAdapter(ComponentAdapter<?> componentAdapter) |
Modifier and Type | Method and Description |
---|---|
<T> ComponentAdapter<T> |
AbstractDelegatingPicoContainer.getComponentAdapter(Class<T> componentType,
Class<? extends Annotation> binding) |
<T> ComponentAdapter<T> |
ImmutablePicoContainer.getComponentAdapter(Class<T> componentType,
Class<? extends Annotation> binding) |
<T> ComponentAdapter<T> |
CompositePicoContainer.getComponentAdapter(Class<T> componentType,
Class<? extends Annotation> binding) |
<T> ComponentAdapter<T> |
EmptyPicoContainer.getComponentAdapter(Class<T> componentType,
Class<? extends Annotation> binding) |
<T> ComponentAdapter<T> |
AbstractDelegatingPicoContainer.getComponentAdapter(Class<T> componentType,
NameBinding componentNameBinding) |
<T> ComponentAdapter<T> |
ImmutablePicoContainer.getComponentAdapter(Class<T> componentType,
NameBinding componentNameBinding) |
<T> ComponentAdapter<T> |
CompositePicoContainer.getComponentAdapter(Class<T> componentType,
NameBinding nameBinding) |
<T> ComponentAdapter<T> |
EmptyPicoContainer.getComponentAdapter(Class<T> componentType,
NameBinding componentNameBinding) |
ComponentAdapter<?> |
AbstractDelegatingPicoContainer.getComponentAdapter(Object componentKey) |
ComponentAdapter<?> |
ImmutablePicoContainer.getComponentAdapter(Object componentKey) |
ComponentAdapter |
CompositePicoContainer.getComponentAdapter(Object componentKey) |
ComponentAdapter<?> |
EmptyPicoContainer.getComponentAdapter(Object componentKey) |
<T> ComponentAdapter<T> |
AbstractDelegatingMutablePicoContainer.removeComponent(Object componentKey) |
<T> ComponentAdapter<T> |
AbstractDelegatingMutablePicoContainer.removeComponentByInstance(T componentInstance) |
Modifier and Type | Method and Description |
---|---|
Collection<ComponentAdapter<?>> |
AbstractDelegatingPicoContainer.getComponentAdapters() |
Collection<ComponentAdapter<?>> |
ImmutablePicoContainer.getComponentAdapters() |
Collection<ComponentAdapter<?>> |
CompositePicoContainer.getComponentAdapters() |
Collection<ComponentAdapter<?>> |
EmptyPicoContainer.getComponentAdapters() |
<T> List<ComponentAdapter<T>> |
AbstractDelegatingPicoContainer.getComponentAdapters(Class<T> componentType) |
<T> List<ComponentAdapter<T>> |
ImmutablePicoContainer.getComponentAdapters(Class<T> componentType) |
<T> List<ComponentAdapter<T>> |
CommandLinePicoContainer.getComponentAdapters(Class<T> componentType) |
<T> List<ComponentAdapter<T>> |
CompositePicoContainer.getComponentAdapters(Class<T> componentType) |
<T> List<ComponentAdapter<T>> |
EmptyPicoContainer.getComponentAdapters(Class<T> componentType) |
<T> List<ComponentAdapter<T>> |
AbstractDelegatingPicoContainer.getComponentAdapters(Class<T> componentType,
Class<? extends Annotation> binding) |
<T> List<ComponentAdapter<T>> |
ImmutablePicoContainer.getComponentAdapters(Class<T> componentType,
Class<? extends Annotation> binding) |
<T> List<ComponentAdapter<T>> |
CompositePicoContainer.getComponentAdapters(Class<T> componentType,
Class<? extends Annotation> binding) |
<T> List<ComponentAdapter<T>> |
EmptyPicoContainer.getComponentAdapters(Class<T> componentType,
Class<? extends Annotation> binding) |
Modifier and Type | Method and Description |
---|---|
MutablePicoContainer |
AbstractDelegatingMutablePicoContainer.addAdapter(ComponentAdapter<?> componentAdapter) |
Modifier and Type | Class and Description |
---|---|
static class |
UserQuestionTestCase.CheeseAdapter<T extends UserQuestionTestCase.Cheese> |
Modifier and Type | Class and Description |
---|---|
class |
Issue0369TestCase.MyAdapter |
Modifier and Type | Method and Description |
---|---|
<U extends ComponentAdapter> |
Issue0369TestCase.MyAdapter.findAdapterOfType(Class<U> adapterType) |
Modifier and Type | Method and Description |
---|---|
ComponentAdapter<List> |
Issue0369TestCase.MyAdapter.getDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
Issue0303TestCase.SwallowingComponentMonitor.lifecycleInvocationFailed(MutablePicoContainer container,
ComponentAdapter<?> componentAdapter,
Method method,
Object instance,
RuntimeException cause) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractFieldInjector<T> |
class |
AbstractInjector<T>
This ComponentAdapter will instantiate a new object for each call to
getComponentInstance(PicoContainer, Type) . |
class |
AnnotatedFieldInjector<T>
Injection happens after instantiation, and through fields marked as injection points via an Annotation.
|
class |
AnnotatedMethodInjector |
class |
CompositeInjector<T> |
class |
ConstructorInjector<T>
Injection will happen through a constructor for the component.
|
class |
FactoryInjector<T>
An Injector which provides an custom instance in a factory style
|
static class |
FactoryInjectorTestCase.BrendansLoggerInjector |
static class |
IntoTypeTestCase.AliceFactory |
class |
IterativeInjector<T>
Injection will happen iteratively after component instantiation
|
class |
MethodInjector<T>
Injection will happen through a single method for the component.
|
static class |
MethodInjector.ByMethodName |
static class |
MethodInjector.ByReflectionMethod |
class |
MultiInjector |
class |
NamedFieldInjector<T>
Injection happens after instantiation, and fields are marked as
injection points via a named field.
|
class |
NamedMethodInjector<T> |
class |
ProviderAdapter
Providers are a type of Injector that can participate in Injection via a custom method.
|
static class |
ProviderTestCase.Chocolatier |
static class |
ProviderTestCase.ExampleRequestReader |
static class |
ProviderTestCase.NullableChocolatier |
static class |
ProviderTestCase.ProviderWithBadProvideMethod |
static class |
ProviderTestCase.ProviderWithoutProvideMethod |
static class |
ProviderTestCase.ProviderWithTooManyProvideMethods |
class |
SetterInjector<T>
Instantiates components using empty constructors and
Setter Injection.
|
class |
SingleMemberInjector<T>
Injection will happen in a single member function on the component.
|
class |
TypedFieldInjector<T>
Injection happens after instantiation, and fields are marked as
injection points via a field type.
|
Modifier and Type | Method and Description |
---|---|
<U extends ComponentAdapter> |
FactoryInjector.findAdapterOfType(Class<U> adapterType) |
Modifier and Type | Method and Description |
---|---|
static ComponentAdapter |
Injector.annotatedField(Object key,
Class<?> impl,
Parameter[] parameters,
ComponentMonitor componentMonitor,
Class<? extends Annotation> injectionAnnotation,
boolean useNames)
Convenience method to create annotated field injector
|
static ComponentAdapter |
Injector.annotatedMethod(Object key,
Class<?> impl,
Parameter[] parameters,
ComponentMonitor monitor,
Class<? extends Annotation> injectionAnnotation,
boolean useNames)
convenience method to create annotated method injector
|
static ComponentAdapter |
Injector.composite(Object componentKey,
Class<?> componentImplementation,
Parameter[] parameters,
ComponentMonitor monitor,
boolean useNames,
Injector... injectors)
creates composite injector
|
static ComponentAdapter |
Injector.constructor(Object componentKey,
Class<?> componentImplementation,
Parameter... parameters)
Constructor injector that uses no monitor and no lifecycle adapter.
|
static ComponentAdapter |
Injector.constructor(Object componentKey,
Class componentImplementation,
Parameter[] parameters,
ComponentMonitor monitor,
boolean useNames)
Creates a ConstructorInjector
|
static ComponentAdapter |
Injector.constructor(Object componentKey,
Class componentImplementation,
Parameter[] parameters,
ComponentMonitor monitor,
boolean useNames,
boolean rememberChosenCtor)
Creates a ConstructorInjector
|
<T> ComponentAdapter<T> |
NamedFieldInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
AdaptingInjection.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
TypedFieldInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
SetterInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
Create a
SetterInjector . |
<T> ComponentAdapter<T> |
CompositeInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
NamedMethodInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
MethodInjection.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
MethodInjection.MethodInjectionByName.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
MethodInjection.MethodInjectionByReflectionMethod.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
AnnotatedFieldInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
ConstructorInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties properties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
MultiInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters) |
<T> ComponentAdapter<T> |
AnnotatedMethodInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
Create a
SetterInjector . |
ComponentAdapter |
ProviderAdapter.findAdapterOfType(Class adapterType) |
ComponentAdapter<T> |
FactoryInjector.getDelegate() |
ComponentAdapter |
ProviderAdapter.getDelegate() |
ComponentAdapter[] |
ConstructorInjector.CtorAndAdapters.getInjecteeAdapters() |
static ComponentAdapter |
Injector.method(Object componentKey,
Class componentImplementation,
Parameter[] parameters,
ComponentMonitor monitor,
String methodName,
boolean useNames)
convenience method to create method injector
|
static ComponentAdapter |
Injector.multi(Object componentKey,
Class componentImplementation,
Parameter[] parameters,
ComponentMonitor componentMonitor,
String setterPrefix,
boolean useNames)
convenience method to create multi component adapter
|
static ComponentAdapter |
Injector.namedField(Object key,
Class<?> impl,
Parameter[] parameters,
ComponentMonitor componentMonitor,
String fieldNames)
convenience method to create named field injector
|
static ComponentAdapter |
Injector.setter(Object componentKey,
Class componentImplementation,
Parameter[] parameters,
ComponentMonitor monitor,
String prefix,
boolean useNames)
convenience method to create setter injector
|
static ComponentAdapter |
Injector.typedField(Object key,
Class<?> impl,
Parameter[] parameters,
ComponentMonitor componentMonitor,
String classNames)
conveniently create typed field injector
|
protected ComponentAdapter |
AbstractInjectionFactory.wrapLifeCycle(Injector injector,
LifecycleStrategy lifecycleStrategy) |
Modifier and Type | Method and Description |
---|---|
protected Object |
SingleMemberInjector.getParameter(PicoContainer container,
AccessibleObject member,
int i,
Type parameterType,
Annotation binding,
Parameter currentParameter,
ComponentAdapter<?> injecteeAdapter) |
boolean |
ProviderAdapter.isLazy(ComponentAdapter<?> adapter) |
Constructor and Description |
---|
CtorAndAdapters(Constructor<TYPE> ctor,
Parameter[] parameters,
ComponentAdapter[] injecteeAdapters) |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractMonitoringLifecycleStrategy.isLazy(ComponentAdapter<?> adapter) |
boolean |
NullLifecycleStrategy.isLazy(ComponentAdapter<?> adapter) |
boolean |
CompositeLifecycleStrategy.isLazy(ComponentAdapter<?> adapter) |
Modifier and Type | Method and Description |
---|---|
<T> void |
AbstractComponentMonitor.instantiated(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Object instantiated,
Object[] injected,
long duration) |
<T> void |
ConsoleComponentMonitor.instantiated(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Object instantiated,
Object[] parameters,
long duration) |
<T> void |
WriterComponentMonitor.instantiated(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Object instantiated,
Object[] injected,
long duration) |
<T> void |
LifecycleComponentMonitor.instantiated(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Object instantiated,
Object[] parameters,
long duration) |
<T> void |
NullComponentMonitor.instantiated(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Object instantiated,
Object[] injected,
long duration) |
<T> Constructor<T> |
AbstractComponentMonitor.instantiating(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor) |
<T> Constructor<T> |
ConsoleComponentMonitor.instantiating(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor) |
<T> Constructor<T> |
WriterComponentMonitor.instantiating(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor) |
<T> Constructor<T> |
LifecycleComponentMonitor.instantiating(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor) |
<T> Constructor<T> |
NullComponentMonitor.instantiating(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor) |
<T> void |
AbstractComponentMonitor.instantiationFailed(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Exception e) |
<T> void |
ConsoleComponentMonitor.instantiationFailed(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Exception cause) |
<T> void |
WriterComponentMonitor.instantiationFailed(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Exception cause) |
<T> void |
LifecycleComponentMonitor.instantiationFailed(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Exception cause) |
<T> void |
NullComponentMonitor.instantiationFailed(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Exception e) |
void |
AbstractComponentMonitor.invoked(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
long duration,
Object[] args,
Object retVal) |
void |
ConsoleComponentMonitor.invoked(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
long duration,
Object[] args,
Object retVal) |
void |
WriterComponentMonitor.invoked(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
long duration,
Object[] args,
Object retVal) |
void |
LifecycleComponentMonitor.invoked(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
long duration,
Object[] args,
Object retVal) |
void |
NullComponentMonitor.invoked(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
long duration,
Object[] args,
Object retVal) |
Object |
AbstractComponentMonitor.invoking(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
Object[] args) |
Object |
ConsoleComponentMonitor.invoking(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
Object[] args) |
Object |
WriterComponentMonitor.invoking(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
Object[] args) |
Object |
LifecycleComponentMonitor.invoking(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
Object[] args) |
Object |
NullComponentMonitor.invoking(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
Object[] args) |
void |
AbstractComponentMonitor.lifecycleInvocationFailed(MutablePicoContainer container,
ComponentAdapter<?> componentAdapter,
Method method,
Object instance,
RuntimeException cause) |
void |
ConsoleComponentMonitor.lifecycleInvocationFailed(MutablePicoContainer container,
ComponentAdapter<?> componentAdapter,
Method method,
Object instance,
RuntimeException cause) |
void |
WriterComponentMonitor.lifecycleInvocationFailed(MutablePicoContainer container,
ComponentAdapter<?> componentAdapter,
Method method,
Object instance,
RuntimeException cause) |
void |
LifecycleComponentMonitor.lifecycleInvocationFailed(MutablePicoContainer container,
ComponentAdapter<?> componentAdapter,
Method method,
Object instance,
RuntimeException cause) |
void |
NullComponentMonitor.lifecycleInvocationFailed(MutablePicoContainer container,
ComponentAdapter<?> componentAdapter,
Method method,
Object instance,
RuntimeException cause) |
Modifier and Type | Method and Description |
---|---|
static ComponentAdapter<?> |
BasicComponentParameter.findInjectorOrInstanceAdapter(ComponentAdapter<?> f) |
protected <T> ComponentAdapter<T> |
BasicComponentParameter.resolveAdapter(PicoContainer container,
ComponentAdapter adapter,
Class<T> expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding) |
Modifier and Type | Method and Description |
---|---|
protected Map<Object,ComponentAdapter<?>> |
CollectionComponentParameter.getMatchingComponentAdapters(PicoContainer container,
ComponentAdapter adapter,
Class keyType,
Class valueType)
Collect the matching ComponentAdapter instances.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
CollectionComponentParameter.evaluate(ComponentAdapter adapter)
Evaluate whether the given component adapter will be part of the collective type.
|
static ComponentAdapter<?> |
BasicComponentParameter.findInjectorOrInstanceAdapter(ComponentAdapter<?> f) |
protected Map<Object,ComponentAdapter<?>> |
CollectionComponentParameter.getMatchingComponentAdapters(PicoContainer container,
ComponentAdapter adapter,
Class keyType,
Class valueType)
Collect the matching ComponentAdapter instances.
|
boolean |
AbstractParameter.isResolvable(PicoContainer container,
ComponentAdapter<?> forAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Deprecated.
|
Parameter.Resolver |
DefaultConstructorParameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding) |
Parameter.Resolver |
DefaultConstructorParameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding) |
Parameter.Resolver |
NullParameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Check if the Parameter can satisfy the expected type using the container.
|
Parameter.Resolver |
NullParameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Check if the Parameter can satisfy the expected type using the container.
|
Parameter.Resolver |
BasicComponentParameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Check whether the given Parameter can be satisfied by the container.
|
Parameter.Resolver |
BasicComponentParameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Check whether the given Parameter can be satisfied by the container.
|
Parameter.Resolver |
CollectionComponentParameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Check for a successful dependency resolution of the parameter for the expected type.
|
Parameter.Resolver |
CollectionComponentParameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Check for a successful dependency resolution of the parameter for the expected type.
|
Parameter.Resolver |
ComponentParameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding) |
Parameter.Resolver |
ComponentParameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding) |
Parameter.Resolver |
ConstantParameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding) |
Parameter.Resolver |
ConstantParameter.resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding) |
protected <T> ComponentAdapter<T> |
BasicComponentParameter.resolveAdapter(PicoContainer container,
ComponentAdapter adapter,
Class<T> expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding) |
Object |
AbstractParameter.resolveInstance(PicoContainer container,
ComponentAdapter<?> forAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Deprecated.
|
void |
DefaultConstructorParameter.verify(PicoContainer container,
ComponentAdapter<?> adapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding) |
void |
NullParameter.verify(PicoContainer container,
ComponentAdapter<?> adapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Verify that the Parameter can satisfy the expected type using the container
|
void |
BasicComponentParameter.verify(PicoContainer container,
ComponentAdapter<?> forAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding) |
void |
CollectionComponentParameter.verify(PicoContainer container,
ComponentAdapter<?> adapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Verify a successful dependency resolution of the parameter for the expected type.
|
void |
ComponentParameter.verify(PicoContainer container,
ComponentAdapter<?> adapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding) |
void |
ConstantParameter.verify(PicoContainer container,
ComponentAdapter<?> adapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Verify that the Parameter can satisfy the expected type using the container
|
Modifier and Type | Method and Description |
---|---|
static <T> String[] |
BasicComponentParameter.makeFoundAmbiguousStrings(Collection<ComponentAdapter<T>> found) |
Modifier and Type | Class and Description |
---|---|
static class |
AbstractComponentAdapterTest.CollectingBehavior |
static class |
AbstractComponentAdapterTest.CycleDetectorBehavior |
static class |
AbstractComponentAdapterTest.NotInstantiatableBehavior |
static class |
AbstractPicoContainerTest.TestBehavior |
Modifier and Type | Method and Description |
---|---|
protected ComponentAdapter |
AbstractComponentAdapterTest.prepDEF_isAbleToTakeParameters(MutablePicoContainer picoContainer)
Prepare the test isAbleToTakeParameters.
|
protected abstract ComponentAdapter |
AbstractComponentAdapterTest.prepDEF_verifyDoesNotInstantiate(MutablePicoContainer picoContainer)
Prepare the test verifyDoesNotInstantiate.
|
protected abstract ComponentAdapter |
AbstractComponentAdapterTest.prepDEF_verifyWithoutDependencyWorks(MutablePicoContainer picoContainer)
Prepare the test verifyWithoutDependencyWorks.
|
protected abstract ComponentAdapter |
AbstractComponentAdapterTest.prepDEF_visitable()
Prepare the test visitable.
|
protected ComponentAdapter |
AbstractComponentAdapterTest.prepINS_createsNewInstances(MutablePicoContainer picoContainer)
Prepare the test createsNewInstances.
|
protected ComponentAdapter |
AbstractComponentAdapterTest.prepINS_errorIsRethrown(MutablePicoContainer picoContainer)
Prepare the test errorIsRethrown.
|
protected ComponentAdapter |
AbstractComponentAdapterTest.prepINS_normalExceptionIsRethrownInsidePicoInitializationException(MutablePicoContainer picoContainer)
Prepare the test normalExceptionIsRethrownInsidePicoInvocationTargetInitializationException.
|
protected ComponentAdapter |
AbstractComponentAdapterTest.prepINS_runtimeExceptionIsRethrown(MutablePicoContainer picoContainer)
Prepare the test runtimeExceptionIsRethrown.
|
protected ComponentAdapter |
AbstractComponentAdapterTest.prepRES_dependenciesAreResolved(MutablePicoContainer picoContainer)
Prepare the test dependenciesAreResolved.
|
protected ComponentAdapter |
AbstractComponentAdapterTest.prepRES_failingInstantiationWithCyclicDependencyException(MutablePicoContainer picoContainer)
Prepare the test failingInstantiationWithCyclicDependencyException.
|
protected ComponentAdapter |
AbstractComponentAdapterTest.prepRES_failingVerificationWithCyclicDependencyException(MutablePicoContainer picoContainer)
Prepare the test failingVerificationWithCyclicDependencyException.
|
protected ComponentAdapter |
AbstractComponentAdapterTest.prepSER_isSerializable(MutablePicoContainer picoContainer)
Prepare the test isSerializable.
|
protected ComponentAdapter |
AbstractComponentAdapterTest.prepSER_isXStreamSerializable(MutablePicoContainer picoContainer)
Prepare the test isXStreamSerializable.
|
protected ComponentAdapter |
AbstractComponentAdapterTest.prepVER_verificationFails(MutablePicoContainer picoContainer)
Prepare the test verificationFailsWithUnsatisfiedDependency.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractComponentAdapterTest.RecordingLifecycleStrategy.isLazy(ComponentAdapter<?> adapter) |
void |
AbstractPicoContainerTest.RecordingStrategyVisitor.visitComponentAdapter(ComponentAdapter componentAdapter) |
Constructor and Description |
---|
CollectingBehavior(ComponentAdapter delegate,
List list) |
CycleDetectorBehavior(ComponentAdapter delegate,
Set set,
ObjectReference reference) |
NotInstantiatableBehavior(ComponentAdapter delegate) |
TestBehavior(ComponentAdapter delegate) |
Modifier and Type | Method and Description |
---|---|
void |
TraversalCheckingVisitor.visitComponentAdapter(ComponentAdapter<?> componentAdapter)
Visit a
ComponentAdapter that has to accept the visitor. |
void |
VerifyingVisitor.visitComponentAdapter(ComponentAdapter<?> componentAdapter) |
Copyright © 2003–2016 Codehaus. All rights reserved.