Uses of Interface
org.picocontainer.ComponentAdapter
Packages that use ComponentAdapter
Package
Description
This package contains the core API for PicoContainer, a compact container for working with the
dependency injection pattern.
BehaviorFactories make Behaviors which change aspects of component implementations and instances
Containers are the main user entry point for PicoContainer.
InjectionFactories make Injectors which implement specific types of dependency injection
Alternative implementations of lifecycle strategy for use with a container.
A Monitor is something PicoContainer uses to inform on events in component instantiation and lifecycle.
-
Uses of ComponentAdapter in org.picocontainer
Subinterfaces of ComponentAdapter in org.picocontainerModifier and TypeInterfaceDescriptioninterface
Behavior<T>
Behaviors modify the components created by a Injector with additional behaviorsinterface
Injector<T>
Implementers are responsible for instantiating and injecting dependancies into Constructors, Methods and Fields.Classes in org.picocontainer that implement ComponentAdapterModifier and TypeClassDescriptionstatic class
static class
Fields in org.picocontainer with type parameters of type ComponentAdapterModifier and TypeFieldDescriptionprotected final List<ComponentAdapter<?>>
DefaultPicoContainer.orderedComponentAdapters
Methods in org.picocontainer with type parameters of type ComponentAdapterModifier and TypeMethodDescription<U extends ComponentAdapter>
UComponentAdapter.findAdapterOfType
(Class<U> adapterType) Locates a component adapter of type componentAdapterType in the ComponentAdapter chain.<U extends ComponentAdapter>
UDefaultPicoContainer.KnowsContainerAdapter.findAdapterOfType
(Class<U> adapterType) Methods in org.picocontainer that return ComponentAdapterModifier and TypeMethodDescription<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.<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>
DefaultPicoContainer.getComponentAdapter
(Class<T> componentType, NameBinding componentNameBinding) Find a component adapter associated with the specified type and binding name.final ComponentAdapter<?>
DefaultPicoContainer.getComponentAdapter
(Object componentKey) Find a component adapter associated with the specified key.Parameter.DelegateResolver.getComponentAdapter()
Parameter.NotResolved.getComponentAdapter()
Parameter.Resolver.getComponentAdapter()
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>
PicoContainer.getComponentAdapter
(Class<T> componentType, NameBinding componentNameBinding) Find a component adapter associated with the specified type and binding name.PicoContainer.getComponentAdapter
(Object componentKey) Find a component adapter associated with the specified key.ComponentAdapter.getDelegate()
Component adapters may be nested in a chain, and this method is used to grab the next ComponentAdapter in the chain.DefaultPicoContainer.KnowsContainerAdapter.getDelegate()
<T> ComponentAdapter<T>
DefaultPicoContainer.removeComponent
(Object componentKey) Unregister a component by key.<T> ComponentAdapter<T>
MutablePicoContainer.removeComponent
(Object componentKey) Unregister a component by key.<T> ComponentAdapter<T>
DefaultPicoContainer.removeComponentByInstance
(T componentInstance) Unregister a component by instance.<T> ComponentAdapter<T>
MutablePicoContainer.removeComponentByInstance
(T componentInstance) Unregister a component by instance.Methods in org.picocontainer that return types with arguments of type ComponentAdapterModifier and TypeMethodDescriptionDefaultPicoContainer.getComponentAdapters()
Retrieve all the component adapters inside this container.<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>>
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.PicoContainer.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>>
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.protected Map<Object,
ComponentAdapter<?>> DefaultPicoContainer.getComponentKeyToAdapterCache()
protected Set<ComponentAdapter<?>>
DefaultPicoContainer.getModifiableComponentAdapterList()
protected List<ComponentAdapter<?>>
DefaultPicoContainer.getOrderedComponentAdapters()
Methods in org.picocontainer with parameters of type ComponentAdapterModifier and TypeMethodDescriptionDefaultPicoContainer.addAdapter
(ComponentAdapter<?> componentAdapter) Register a component via a ComponentAdapter.DefaultPicoContainer.addAdapter
(ComponentAdapter<?> componentAdapter, Properties properties) MutablePicoContainer.addAdapter
(ComponentAdapter<?> componentAdapter) Register a component via a ComponentAdapter.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 constructorvoid
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 instanceComponentMonitor.invoking
(PicoContainer container, ComponentAdapter<?> componentAdapter, Member member, Object instance, Object[] args) Event thrown as the component method is being invoked on the given instanceboolean
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 instanceprotected void
DefaultPicoContainer.potentiallyStartAdapter
(ComponentAdapter<?> adapter) 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.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 containervoid
PicoVisitor.visitComponentAdapter
(ComponentAdapter<?> componentAdapter) Visit aComponentAdapter
that has to accept the visitor.Constructors in org.picocontainer with parameters of type ComponentAdapterModifierConstructorDescriptionKnowsContainerAdapter
(ComponentAdapter<T> ca, PicoContainer ctr) ValueResolver
(boolean resolvable, Object value, ComponentAdapter<?> adapter) -
Uses of ComponentAdapter in org.picocontainer.adapters
Classes in org.picocontainer.adapters that implement ComponentAdapterModifier and TypeClassDescriptionclass
Base class for a ComponentAdapter with general functionality.final class
Component adapter which wraps a component instance.Methods in org.picocontainer.adapters with type parameters of type ComponentAdapterModifier and TypeMethodDescriptionfinal <U extends ComponentAdapter>
UAbstractAdapter.findAdapterOfType
(Class<U> adapterType) Methods in org.picocontainer.adapters that return ComponentAdapterMethods in org.picocontainer.adapters with parameters of type ComponentAdapter -
Uses of ComponentAdapter in org.picocontainer.behaviors
Classes in org.picocontainer.behaviors that implement ComponentAdapterModifier and TypeClassDescriptionclass
Component adapter which decorates another adapter.class
Automated<T>
class
Cached<T>
ComponentAdapter
implementation that caches the component instance.class
Decorated<T>
class
class
Guarded<T>
behaviour for allows components to be guarded by another componentclass
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
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().final class
ThreadCached<T>
This behavior supports caches values per thread.Fields in org.picocontainer.behaviors declared as ComponentAdapterMethods in org.picocontainer.behaviors with type parameters of type ComponentAdapterModifier and TypeMethodDescriptionfinal <U extends ComponentAdapter>
UAbstractBehavior.findAdapterOfType
(Class<U> adapterType) Methods in org.picocontainer.behaviors that return ComponentAdapterModifier and TypeMethodDescription<T> ComponentAdapter<T>
AbstractBehaviorFactory.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter<T> adapter) AdaptingBehavior.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter adapter) Automating.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter adapter) <T> ComponentAdapter<T>
Caching.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter<T> adapter) Decorating.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter adapter) FieldDecorating.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter adapter) <T> ComponentAdapter<T>
Guarding.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter<T> adapter) ImplementationHiding.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter adapter) <T> ComponentAdapter<T>
Locking.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>
PropertyApplying.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>
Synchronizing.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>
AbstractBehaviorFactory.createComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class<T> componentImplementation, Parameter... parameters) AdaptingBehavior.createComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class componentImplementation, Parameter... parameters) Automating.createComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class componentImplementation, Parameter... parameters) <T> ComponentAdapter<T>
Caching.createComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class<T> componentImplementation, Parameter... parameters) Decorating.createComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class componentImplementation, Parameter... parameters) FieldDecorating.createComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class componentImplementation, Parameter... parameters) <T> ComponentAdapter<T>
Guarding.createComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class<T> componentImplementation, Parameter... parameters) ImplementationHiding.createComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class 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.<T> ComponentAdapter<T>
OptInCaching.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>
Storing.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>
ThreadCaching.createComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class<T> componentImplementation, Parameter... parameters) final ComponentAdapter<T>
AbstractBehavior.getDelegate()
Methods in org.picocontainer.behaviors with parameters of type ComponentAdapterModifier and TypeMethodDescription<T> ComponentAdapter<T>
AbstractBehaviorFactory.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter<T> adapter) AdaptingBehavior.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter adapter) Automating.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter adapter) <T> ComponentAdapter<T>
Caching.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter<T> adapter) Decorating.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter adapter) FieldDecorating.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter adapter) <T> ComponentAdapter<T>
Guarding.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter<T> adapter) ImplementationHiding.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter adapter) <T> ComponentAdapter<T>
Locking.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>
PropertyApplying.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>
Synchronizing.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter<T> adapter) <T> ComponentAdapter<T>
ThreadCaching.addComponentAdapter
(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter<T> adapter) static final Behavior
Behavior.cached
(ComponentAdapter delegate) static final Behavior
Behavior.cached
(ComponentAdapter delegate, ObjectReference instanceReference) static final Behavior
Behavior.decorated
(ComponentAdapter delegate, org.picocontainer.behaviors.Decorated.Decorator decorator) boolean
AbstractBehavior.isLazy
(ComponentAdapter<?> adapter) Constructors in org.picocontainer.behaviors with parameters of type ComponentAdapterModifierConstructorDescriptionAbstractBehavior
(ComponentAdapter<T> delegate) Automated
(ComponentAdapter<T> delegate) Cached
(ComponentAdapter delegate) Cached
(ComponentAdapter delegate, ObjectReference<Stored.Instance<T>> instanceReference) Decorated
(ComponentAdapter<T> delegate, org.picocontainer.behaviors.Decorated.Decorator decorator) FieldDecorated
(ComponentAdapter delegate, Class<?> fieldClass, FieldDecorated.Decorator decorator) Guarded
(ComponentAdapter delegate, String guard) HiddenImplementation
(ComponentAdapter<T> delegate) Creates an ImplementationHidingComponentAdapter with a delegateIntercepted
(ComponentAdapter delegate) Locked
(ComponentAdapter<T> delegate) PropertyApplicator
(ComponentAdapter<T> delegate) Construct a PropertyApplicator.Stored
(ComponentAdapter<T> delegate, ObjectReference<Stored.Instance<T>> reference) Synchronized
(ComponentAdapter<T> delegate) ThreadCached
(ComponentAdapter<T> delegate) -
Uses of ComponentAdapter in org.picocontainer.classname
Methods in org.picocontainer.classname that return ComponentAdapterModifier and TypeMethodDescriptionDefaultClassLoadingPicoContainer.getComponentAdapter
(Object componentKey) Methods in org.picocontainer.classname with parameters of type ComponentAdapterModifier and TypeMethodDescriptionDefaultClassLoadingPicoContainer.addAdapter
(ComponentAdapter<?> componentAdapter) -
Uses of ComponentAdapter in org.picocontainer.containers
Methods in org.picocontainer.containers that return ComponentAdapterModifier and TypeMethodDescription<T> ComponentAdapter<T>
AbstractDelegatingPicoContainer.getComponentAdapter
(Class<T> componentType, Class<? extends Annotation> binding) <T> ComponentAdapter<T>
AbstractDelegatingPicoContainer.getComponentAdapter
(Class<T> componentType, NameBinding componentNameBinding) AbstractDelegatingPicoContainer.getComponentAdapter
(Object componentKey) <T> ComponentAdapter<T>
CompositePicoContainer.getComponentAdapter
(Class<T> componentType, Class<? extends Annotation> binding) <T> ComponentAdapter<T>
CompositePicoContainer.getComponentAdapter
(Class<T> componentType, NameBinding nameBinding) CompositePicoContainer.getComponentAdapter
(Object componentKey) <T> ComponentAdapter<T>
EmptyPicoContainer.getComponentAdapter
(Class<T> componentType, Class<? extends Annotation> binding) <T> ComponentAdapter<T>
EmptyPicoContainer.getComponentAdapter
(Class<T> componentType, NameBinding componentNameBinding) EmptyPicoContainer.getComponentAdapter
(Object componentKey) <T> ComponentAdapter<T>
ImmutablePicoContainer.getComponentAdapter
(Class<T> componentType, Class<? extends Annotation> binding) <T> ComponentAdapter<T>
ImmutablePicoContainer.getComponentAdapter
(Class<T> componentType, NameBinding componentNameBinding) ImmutablePicoContainer.getComponentAdapter
(Object componentKey) <T> ComponentAdapter<T>
AbstractDelegatingMutablePicoContainer.removeComponent
(Object componentKey) <T> ComponentAdapter<T>
AbstractDelegatingMutablePicoContainer.removeComponentByInstance
(T componentInstance) Methods in org.picocontainer.containers that return types with arguments of type ComponentAdapterModifier and TypeMethodDescriptionAbstractDelegatingPicoContainer.getComponentAdapters()
<T> List<ComponentAdapter<T>>
AbstractDelegatingPicoContainer.getComponentAdapters
(Class<T> componentType) <T> List<ComponentAdapter<T>>
AbstractDelegatingPicoContainer.getComponentAdapters
(Class<T> componentType, Class<? extends Annotation> binding) <T> List<ComponentAdapter<T>>
CommandLinePicoContainer.getComponentAdapters
(Class<T> componentType) CompositePicoContainer.getComponentAdapters()
<T> List<ComponentAdapter<T>>
CompositePicoContainer.getComponentAdapters
(Class<T> componentType) <T> List<ComponentAdapter<T>>
CompositePicoContainer.getComponentAdapters
(Class<T> componentType, Class<? extends Annotation> binding) EmptyPicoContainer.getComponentAdapters()
<T> List<ComponentAdapter<T>>
EmptyPicoContainer.getComponentAdapters
(Class<T> componentType) <T> List<ComponentAdapter<T>>
EmptyPicoContainer.getComponentAdapters
(Class<T> componentType, Class<? extends Annotation> binding) ImmutablePicoContainer.getComponentAdapters()
<T> List<ComponentAdapter<T>>
ImmutablePicoContainer.getComponentAdapters
(Class<T> componentType) <T> List<ComponentAdapter<T>>
ImmutablePicoContainer.getComponentAdapters
(Class<T> componentType, Class<? extends Annotation> binding) Methods in org.picocontainer.containers with parameters of type ComponentAdapterModifier and TypeMethodDescriptionAbstractDelegatingMutablePicoContainer.addAdapter
(ComponentAdapter<?> componentAdapter) -
Uses of ComponentAdapter in org.picocontainer.injectors
Classes in org.picocontainer.injectors that implement ComponentAdapterModifier and TypeClassDescriptionclass
class
This ComponentAdapter will instantiate a new object for each call togetComponentInstance(PicoContainer, Type)
.class
Injection happens after instantiation, and through fields marked as injection points via an Annotation.class
class
class
Injection will happen through a constructor for the component.class
An Injector which provides an custom instance in a factory styleclass
Injection will happen iteratively after component instantiationclass
Injection will happen through a single method for the component.static class
static class
class
class
Injection happens after instantiation, and fields are marked as injection points via a named field.class
class
Providers are a type of Injector that can participate in Injection via a custom method.class
Instantiates components using empty constructors and Setter Injection.class
Injection will happen in a single member function on the component.class
Injection happens after instantiation, and fields are marked as injection points via a field type.Methods in org.picocontainer.injectors with type parameters of type ComponentAdapterModifier and TypeMethodDescription<U extends ComponentAdapter>
UFactoryInjector.findAdapterOfType
(Class<U> adapterType) Methods in org.picocontainer.injectors that return ComponentAdapterModifier and TypeMethodDescriptionstatic ComponentAdapter
Injector.annotatedField
(Object key, Class<?> impl, Parameter[] parameters, ComponentMonitor componentMonitor, Class<? extends Annotation> injectionAnnotation, boolean useNames) Convenience method to create annotated field injectorstatic ComponentAdapter
Injector.annotatedMethod
(Object key, Class<?> impl, Parameter[] parameters, ComponentMonitor monitor, Class<? extends Annotation> injectionAnnotation, boolean useNames) convenience method to create annotated method injectorstatic ComponentAdapter
Injector.composite
(Object componentKey, Class<?> componentImplementation, Parameter[] parameters, ComponentMonitor monitor, boolean useNames, Injector... injectors) creates composite injectorstatic 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 ConstructorInjectorstatic ComponentAdapter
Injector.constructor
(Object componentKey, Class componentImplementation, Parameter[] parameters, ComponentMonitor monitor, boolean useNames, boolean rememberChosenCtor) Creates a ConstructorInjector<T> ComponentAdapter<T>
AdaptingInjection.createComponentAdapter
(ComponentMonitor componentMonitor, 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>
AnnotatedMethodInjection.createComponentAdapter
(ComponentMonitor monitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class<T> componentImplementation, Parameter... parameters) Create aSetterInjector
.<T> ComponentAdapter<T>
CompositeInjection.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>
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>
MultiInjection.createComponentAdapter
(ComponentMonitor monitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class<T> componentImplementation, Parameter... parameters) <T> ComponentAdapter<T>
NamedFieldInjection.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>
SetterInjection.createComponentAdapter
(ComponentMonitor monitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class<T> componentImplementation, Parameter... parameters) Create aSetterInjector
.<T> ComponentAdapter<T>
TypedFieldInjection.createComponentAdapter
(ComponentMonitor monitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class<T> componentImplementation, Parameter... parameters) ProviderAdapter.findAdapterOfType
(Class adapterType) FactoryInjector.getDelegate()
ProviderAdapter.getDelegate()
ConstructorInjector.CtorAndAdapters.getInjecteeAdapters()
static ComponentAdapter
Injector.method
(Object componentKey, Class componentImplementation, Parameter[] parameters, ComponentMonitor monitor, String methodName, boolean useNames) convenience method to create method injectorstatic ComponentAdapter
Injector.multi
(Object componentKey, Class componentImplementation, Parameter[] parameters, ComponentMonitor componentMonitor, String setterPrefix, boolean useNames) convenience method to create multi component adapterstatic ComponentAdapter
Injector.namedField
(Object key, Class<?> impl, Parameter[] parameters, ComponentMonitor componentMonitor, String fieldNames) convenience method to create named field injectorstatic ComponentAdapter
Injector.setter
(Object componentKey, Class componentImplementation, Parameter[] parameters, ComponentMonitor monitor, String prefix, boolean useNames) convenience method to create setter injectorstatic ComponentAdapter
Injector.typedField
(Object key, Class<?> impl, Parameter[] parameters, ComponentMonitor componentMonitor, String classNames) conveniently create typed field injectorprotected ComponentAdapter
AbstractInjectionFactory.wrapLifeCycle
(Injector injector, LifecycleStrategy lifecycleStrategy) Methods in org.picocontainer.injectors with parameters of type ComponentAdapterModifier and TypeMethodDescriptionprotected Object
SingleMemberInjector.getParameter
(PicoContainer container, AccessibleObject member, int i, Type parameterType, Annotation binding, Parameter currentParameter, ComponentAdapter<?> injecteeAdapter) boolean
ProviderAdapter.isLazy
(ComponentAdapter<?> adapter) Constructors in org.picocontainer.injectors with parameters of type ComponentAdapterModifierConstructorDescriptionCtorAndAdapters
(Constructor<TYPE> ctor, Parameter[] parameters, ComponentAdapter[] injecteeAdapters) -
Uses of ComponentAdapter in org.picocontainer.lifecycle
Methods in org.picocontainer.lifecycle with parameters of type ComponentAdapterModifier and TypeMethodDescriptionboolean
AbstractMonitoringLifecycleStrategy.isLazy
(ComponentAdapter<?> adapter) boolean
CompositeLifecycleStrategy.isLazy
(ComponentAdapter<?> adapter) boolean
NullLifecycleStrategy.isLazy
(ComponentAdapter<?> adapter) -
Uses of ComponentAdapter in org.picocontainer.monitors
Methods in org.picocontainer.monitors with parameters of type ComponentAdapterModifier and TypeMethodDescription<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
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> void
WriterComponentMonitor.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>
LifecycleComponentMonitor.instantiating
(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor) <T> Constructor<T>
NullComponentMonitor.instantiating
(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor) <T> Constructor<T>
WriterComponentMonitor.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
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) <T> void
WriterComponentMonitor.instantiationFailed
(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Exception cause) 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
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) void
WriterComponentMonitor.invoked
(PicoContainer container, ComponentAdapter<?> componentAdapter, Member member, Object instance, long duration, Object[] args, Object retVal) AbstractComponentMonitor.invoking
(PicoContainer container, ComponentAdapter<?> componentAdapter, Member member, Object instance, Object[] args) ConsoleComponentMonitor.invoking
(PicoContainer container, ComponentAdapter<?> componentAdapter, Member member, Object instance, Object[] args) LifecycleComponentMonitor.invoking
(PicoContainer container, ComponentAdapter<?> componentAdapter, Member member, Object instance, Object[] args) NullComponentMonitor.invoking
(PicoContainer container, ComponentAdapter<?> componentAdapter, Member member, Object instance, Object[] args) WriterComponentMonitor.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
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) void
WriterComponentMonitor.lifecycleInvocationFailed
(MutablePicoContainer container, ComponentAdapter<?> componentAdapter, Method method, Object instance, RuntimeException cause) -
Uses of ComponentAdapter in org.picocontainer.parameters
Methods in org.picocontainer.parameters that return ComponentAdapterModifier and TypeMethodDescriptionstatic ComponentAdapter<?>
BasicComponentParameter.findInjectorOrInstanceAdapter
(ComponentAdapter<?> f) protected <T> ComponentAdapter<T>
BasicComponentParameter.resolveAdapter
(PicoContainer container, ComponentAdapter adapter, Class<T> expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) Methods in org.picocontainer.parameters that return types with arguments of type ComponentAdapterModifier and TypeMethodDescriptionprotected Map<Object,
ComponentAdapter<?>> CollectionComponentParameter.getMatchingComponentAdapters
(PicoContainer container, ComponentAdapter adapter, Class keyType, Class valueType) Collect the matching ComponentAdapter instances.Methods in org.picocontainer.parameters with parameters of type ComponentAdapterModifier and TypeMethodDescriptionprotected 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.final boolean
AbstractParameter.isResolvable
(PicoContainer container, ComponentAdapter<?> forAdapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) Deprecated.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.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.ComponentParameter.resolve
(PicoContainer container, ComponentAdapter<?> forAdapter, ComponentAdapter<?> injecteeAdapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) ConstantParameter.resolve
(PicoContainer container, ComponentAdapter<?> forAdapter, ComponentAdapter<?> injecteeAdapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) DefaultConstructorParameter.resolve
(PicoContainer container, ComponentAdapter<?> forAdapter, ComponentAdapter<?> injecteeAdapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) 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.protected <T> ComponentAdapter<T>
BasicComponentParameter.resolveAdapter
(PicoContainer container, ComponentAdapter adapter, Class<T> expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) final Object
AbstractParameter.resolveInstance
(PicoContainer container, ComponentAdapter<?> forAdapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) Deprecated.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 containervoid
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 containerMethod parameters in org.picocontainer.parameters with type arguments of type ComponentAdapterModifier and TypeMethodDescriptionstatic <T> String[]
BasicComponentParameter.makeFoundAmbiguousStrings
(Collection<ComponentAdapter<T>> found) -
Uses of ComponentAdapter in org.picocontainer.visitors
Methods in org.picocontainer.visitors with parameters of type ComponentAdapterModifier and TypeMethodDescriptionvoid
TraversalCheckingVisitor.visitComponentAdapter
(ComponentAdapter<?> componentAdapter) Visit aComponentAdapter
that has to accept the visitor.void
VerifyingVisitor.visitComponentAdapter
(ComponentAdapter<?> componentAdapter)