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 TypeInterfaceDescriptioninterfaceBehavior<T>Behaviors modify the components created by a Injector with additional behaviorsinterfaceInjector<T>Implementers are responsible for instantiating and injecting dependancies into Constructors, Methods and Fields.Classes in org.picocontainer that implement ComponentAdapterModifier and TypeClassDescriptionstatic classstatic classFields in org.picocontainer with type parameters of type ComponentAdapterModifier and TypeFieldDescriptionprotected final List<ComponentAdapter<?>> DefaultPicoContainer.orderedComponentAdaptersMethods 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 MutablePicoContainerDefaultPicoContainer.addAdapterInternal(ComponentAdapter<?> componentAdapter) <T> ComponentAdapter<T> BehaviorFactory.addComponentAdapter(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter<T> adapter) protected ObjectDefaultPicoContainer.decorateComponent(Object component, ComponentAdapter<?> componentAdapter) This is invoked when getComponent(..) is called.protected voidDefaultPicoContainer.instantiateComponentAsIsStartable(ComponentAdapter<?> adapter) <T> voidComponentMonitor.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> voidComponentMonitor.instantiationFailed(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Exception cause) Event thrown if the component instantiation failed using the given constructorvoidComponentMonitor.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 instancebooleanLifecycleStrategy.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() ).booleanParameter.isResolvable(PicoContainer container, ComponentAdapter<?> forAdapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) Deprecated.voidComponentMonitor.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 voidDefaultPicoContainer.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.voidParameter.verify(PicoContainer container, ComponentAdapter<?> adapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) Verify that the Parameter can satisfy the expected type using the containervoidPicoVisitor.visitComponentAdapter(ComponentAdapter<?> componentAdapter) Visit aComponentAdapterthat 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 TypeClassDescriptionclassBase class for a ComponentAdapter with general functionality.final classComponent 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 TypeClassDescriptionclassComponent adapter which decorates another adapter.classAutomated<T>classCached<T>ComponentAdapterimplementation that caches the component instance.classDecorated<T>classclassGuarded<T>behaviour for allows components to be guarded by another componentclassThis component adapter makes it possible to hide the implementation of a real subject (behind a proxy) provided the key is an interface.classIntercepted<T>classLocked<T>classDecorating component adapter that can be used to set additional properties on a component in a bean style.classStored<T>classSynchronized<T>Component Adapter that uses java synchronized around getComponentInstance().final classThreadCached<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 BehaviorBehavior.cached(ComponentAdapter delegate) static final BehaviorBehavior.cached(ComponentAdapter delegate, ObjectReference instanceReference) static final BehaviorBehavior.decorated(ComponentAdapter delegate, org.picocontainer.behaviors.Decorated.Decorator decorator) booleanAbstractBehavior.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 TypeClassDescriptionclassclassThis ComponentAdapter will instantiate a new object for each call togetComponentInstance(PicoContainer, Type).classInjection happens after instantiation, and through fields marked as injection points via an Annotation.classclassclassInjection will happen through a constructor for the component.classAn Injector which provides an custom instance in a factory styleclassInjection will happen iteratively after component instantiationclassInjection will happen through a single method for the component.static classstatic classclassclassInjection happens after instantiation, and fields are marked as injection points via a named field.classclassProviders are a type of Injector that can participate in Injection via a custom method.classInstantiates components using empty constructors and Setter Injection.classInjection will happen in a single member function on the component.classInjection 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 ComponentAdapterInjector.annotatedField(Object key, Class<?> impl, Parameter[] parameters, ComponentMonitor componentMonitor, Class<? extends Annotation> injectionAnnotation, boolean useNames) Convenience method to create annotated field injectorstatic ComponentAdapterInjector.annotatedMethod(Object key, Class<?> impl, Parameter[] parameters, ComponentMonitor monitor, Class<? extends Annotation> injectionAnnotation, boolean useNames) convenience method to create annotated method injectorstatic ComponentAdapterInjector.composite(Object componentKey, Class<?> componentImplementation, Parameter[] parameters, ComponentMonitor monitor, boolean useNames, Injector... injectors) creates composite injectorstatic ComponentAdapterInjector.constructor(Object componentKey, Class<?> componentImplementation, Parameter... parameters) Constructor injector that uses no monitor and no lifecycle adapter.static ComponentAdapterInjector.constructor(Object componentKey, Class componentImplementation, Parameter[] parameters, ComponentMonitor monitor, boolean useNames) Creates a ConstructorInjectorstatic ComponentAdapterInjector.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 ComponentAdapterInjector.method(Object componentKey, Class componentImplementation, Parameter[] parameters, ComponentMonitor monitor, String methodName, boolean useNames) convenience method to create method injectorstatic ComponentAdapterInjector.multi(Object componentKey, Class componentImplementation, Parameter[] parameters, ComponentMonitor componentMonitor, String setterPrefix, boolean useNames) convenience method to create multi component adapterstatic ComponentAdapterInjector.namedField(Object key, Class<?> impl, Parameter[] parameters, ComponentMonitor componentMonitor, String fieldNames) convenience method to create named field injectorstatic ComponentAdapterInjector.setter(Object componentKey, Class componentImplementation, Parameter[] parameters, ComponentMonitor monitor, String prefix, boolean useNames) convenience method to create setter injectorstatic ComponentAdapterInjector.typedField(Object key, Class<?> impl, Parameter[] parameters, ComponentMonitor componentMonitor, String classNames) conveniently create typed field injectorprotected ComponentAdapterAbstractInjectionFactory.wrapLifeCycle(Injector injector, LifecycleStrategy lifecycleStrategy) Methods in org.picocontainer.injectors with parameters of type ComponentAdapterModifier and TypeMethodDescriptionprotected ObjectSingleMemberInjector.getParameter(PicoContainer container, AccessibleObject member, int i, Type parameterType, Annotation binding, Parameter currentParameter, ComponentAdapter<?> injecteeAdapter) booleanProviderAdapter.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 TypeMethodDescriptionbooleanAbstractMonitoringLifecycleStrategy.isLazy(ComponentAdapter<?> adapter) booleanCompositeLifecycleStrategy.isLazy(ComponentAdapter<?> adapter) booleanNullLifecycleStrategy.isLazy(ComponentAdapter<?> adapter) -
Uses of ComponentAdapter in org.picocontainer.monitors
Methods in org.picocontainer.monitors with parameters of type ComponentAdapterModifier and TypeMethodDescription<T> voidAbstractComponentMonitor.instantiated(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Object instantiated, Object[] injected, long duration) <T> voidConsoleComponentMonitor.instantiated(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Object instantiated, Object[] parameters, long duration) <T> voidLifecycleComponentMonitor.instantiated(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Object instantiated, Object[] parameters, long duration) <T> voidNullComponentMonitor.instantiated(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Object instantiated, Object[] injected, long duration) <T> voidWriterComponentMonitor.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> voidAbstractComponentMonitor.instantiationFailed(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Exception e) <T> voidConsoleComponentMonitor.instantiationFailed(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Exception cause) <T> voidLifecycleComponentMonitor.instantiationFailed(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Exception cause) <T> voidNullComponentMonitor.instantiationFailed(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Exception e) <T> voidWriterComponentMonitor.instantiationFailed(PicoContainer container, ComponentAdapter<T> componentAdapter, Constructor<T> constructor, Exception cause) voidAbstractComponentMonitor.invoked(PicoContainer container, ComponentAdapter<?> componentAdapter, Member member, Object instance, long duration, Object[] args, Object retVal) voidConsoleComponentMonitor.invoked(PicoContainer container, ComponentAdapter<?> componentAdapter, Member member, Object instance, long duration, Object[] args, Object retVal) voidLifecycleComponentMonitor.invoked(PicoContainer container, ComponentAdapter<?> componentAdapter, Member member, Object instance, long duration, Object[] args, Object retVal) voidNullComponentMonitor.invoked(PicoContainer container, ComponentAdapter<?> componentAdapter, Member member, Object instance, long duration, Object[] args, Object retVal) voidWriterComponentMonitor.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) voidAbstractComponentMonitor.lifecycleInvocationFailed(MutablePicoContainer container, ComponentAdapter<?> componentAdapter, Method method, Object instance, RuntimeException cause) voidConsoleComponentMonitor.lifecycleInvocationFailed(MutablePicoContainer container, ComponentAdapter<?> componentAdapter, Method method, Object instance, RuntimeException cause) voidLifecycleComponentMonitor.lifecycleInvocationFailed(MutablePicoContainer container, ComponentAdapter<?> componentAdapter, Method method, Object instance, RuntimeException cause) voidNullComponentMonitor.lifecycleInvocationFailed(MutablePicoContainer container, ComponentAdapter<?> componentAdapter, Method method, Object instance, RuntimeException cause) voidWriterComponentMonitor.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 booleanCollectionComponentParameter.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 booleanAbstractParameter.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 ObjectAbstractParameter.resolveInstance(PicoContainer container, ComponentAdapter<?> forAdapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) Deprecated.voidBasicComponentParameter.verify(PicoContainer container, ComponentAdapter<?> forAdapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) voidCollectionComponentParameter.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.voidComponentParameter.verify(PicoContainer container, ComponentAdapter<?> adapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) voidConstantParameter.verify(PicoContainer container, ComponentAdapter<?> adapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) Verify that the Parameter can satisfy the expected type using the containervoidDefaultConstructorParameter.verify(PicoContainer container, ComponentAdapter<?> adapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) voidNullParameter.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 TypeMethodDescriptionvoidTraversalCheckingVisitor.visitComponentAdapter(ComponentAdapter<?> componentAdapter) Visit aComponentAdapterthat has to accept the visitor.voidVerifyingVisitor.visitComponentAdapter(ComponentAdapter<?> componentAdapter)