|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ComponentAdapter | |
---|---|
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.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.visitors |
Uses of ComponentAdapter in org.picocontainer |
---|
Subinterfaces of ComponentAdapter in org.picocontainer | |
---|---|
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. |
Classes in org.picocontainer that implement ComponentAdapter | |
---|---|
static class |
DefaultPicoContainer.KnowsContainerAdapter<T>
|
static class |
DefaultPicoContainer.LateInstance
|
Fields in org.picocontainer with type parameters of type ComponentAdapter | |
---|---|
protected List<ComponentAdapter<?>> |
DefaultPicoContainer.orderedComponentAdapters
|
Methods in org.picocontainer with type parameters of type ComponentAdapter | ||
---|---|---|
|
DefaultPicoContainer.KnowsContainerAdapter.findAdapterOfType(Class<U> adapterType)
|
|
|
ComponentAdapter.findAdapterOfType(Class<U> adapterType)
Locates a component adapter of type componentAdapterType in the ComponentAdapter chain. |
Methods in org.picocontainer that return ComponentAdapter | ||
---|---|---|
|
BehaviorFactory.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter)
|
|
|
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<?> |
Parameter.Resolver.getComponentAdapter()
|
|
ComponentAdapter<?> |
Parameter.NotResolved.getComponentAdapter()
|
|
ComponentAdapter<?> |
Parameter.DelegateResolver.getComponentAdapter()
|
|
ComponentAdapter<?> |
Parameter.ValueResolver.getComponentAdapter()
|
|
|
PicoContainer.getComponentAdapter(Class<T> componentType,
Class<? extends Annotation> binding)
Find a component adapter associated with the specified type and binding type. |
|
|
DefaultPicoContainer.getComponentAdapter(Class<T> componentType,
Class<? extends Annotation> binding)
Find a component adapter associated with the specified type and binding type. |
|
|
PicoContainer.getComponentAdapter(Class<T> componentType,
NameBinding componentNameBinding)
Find a component adapter associated with the specified type and binding name. |
|
|
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 |
DefaultPicoContainer.KnowsContainerAdapter.getDelegate()
|
|
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. |
|
|
MutablePicoContainer.removeComponent(Object componentKey)
Unregister a component by key. |
|
|
DefaultPicoContainer.removeComponent(Object componentKey)
Unregister a component by key. |
|
|
MutablePicoContainer.removeComponentByInstance(T componentInstance)
Unregister a component by instance. |
|
|
DefaultPicoContainer.removeComponentByInstance(T componentInstance)
Unregister a component by instance. |
Methods in org.picocontainer that return types with arguments of type ComponentAdapter | ||
---|---|---|
Collection<ComponentAdapter<?>> |
PicoContainer.getComponentAdapters()
Retrieve all the component adapters inside this container. |
|
Collection<ComponentAdapter<?>> |
DefaultPicoContainer.getComponentAdapters()
Retrieve all the component adapters inside this container. |
|
|
PicoContainer.getComponentAdapters(Class<T> componentType)
Retrieve all component adapters inside this container that are associated with the specified type. |
|
|
DefaultPicoContainer.getComponentAdapters(Class<T> componentType)
Retrieve all component adapters inside this container that are associated with the specified type. |
|
|
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. |
|
|
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 List<ComponentAdapter<?>> |
DefaultPicoContainer.getModifiableComponentAdapterList()
|
|
protected List<ComponentAdapter<?>> |
DefaultPicoContainer.getOrderedComponentAdapters()
|
Methods in org.picocontainer with parameters of type ComponentAdapter | ||
---|---|---|
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)
|
|
|
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)
|
|
|
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. |
|
|
ComponentMonitor.instantiating(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor)
Event thrown as the component is being instantiated using the given constructor |
|
|
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 |
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. |
Constructors in org.picocontainer with parameters of type ComponentAdapter | |
---|---|
DefaultPicoContainer.KnowsContainerAdapter(ComponentAdapter<T> ca,
PicoContainer ctr)
|
|
Parameter.ValueResolver(boolean resolvable,
Object value,
ComponentAdapter<?> adapter)
|
Uses of ComponentAdapter in org.picocontainer.adapters |
---|
Classes in org.picocontainer.adapters that implement ComponentAdapter | |
---|---|
class |
AbstractAdapter<T>
Base class for a ComponentAdapter with general functionality. |
class |
InstanceAdapter<T>
Component adapter which wraps a component instance. |
Methods in org.picocontainer.adapters with type parameters of type ComponentAdapter | ||
---|---|---|
|
AbstractAdapter.findAdapterOfType(Class<U> adapterType)
|
Methods in org.picocontainer.adapters that return ComponentAdapter | |
---|---|
ComponentAdapter<T> |
AbstractAdapter.getDelegate()
|
Methods in org.picocontainer.adapters with parameters of type ComponentAdapter | |
---|---|
boolean |
InstanceAdapter.isLazy(ComponentAdapter<?> adapter)
|
Uses of ComponentAdapter in org.picocontainer.behaviors |
---|
Classes in org.picocontainer.behaviors that implement ComponentAdapter | |
---|---|
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. |
Fields in org.picocontainer.behaviors declared as ComponentAdapter | |
---|---|
protected ComponentAdapter<T> |
AbstractBehavior.delegate
|
Methods in org.picocontainer.behaviors with type parameters of type ComponentAdapter | ||
---|---|---|
|
AbstractBehavior.findAdapterOfType(Class<U> adapterType)
|
Methods in org.picocontainer.behaviors that return ComponentAdapter | ||
---|---|---|
ComponentAdapter |
ImplementationHiding.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter adapter)
|
|
ComponentAdapter |
FieldDecorating.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter adapter)
|
|
ComponentAdapter |
Decorating.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)
|
|
|
ThreadCaching.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter)
|
|
|
Synchronizing.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter)
|
|
|
Storing.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter)
|
|
|
PropertyApplying.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter)
|
|
|
OptInCaching.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter)
|
|
|
Locking.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter)
|
|
|
Guarding.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter)
|
|
|
Caching.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter)
|
|
|
AbstractBehaviorFactory.addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter)
|
|
|
ThreadCaching.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
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. |
|
|
Storing.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
PropertyApplying.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
OptInCaching.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
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. |
|
|
Intercepting.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
Guarding.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
Caching.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
AbstractBehaviorFactory.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
ComponentAdapter |
ImplementationHiding.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 |
Decorating.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()
|
Constructors in org.picocontainer.behaviors with parameters of type ComponentAdapter | |
---|---|
AbstractBehavior(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 delegate |
|
Intercepted(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 ComponentAdapter | |
---|---|
ComponentAdapter<?> |
DefaultClassLoadingPicoContainer.getComponentAdapter(Object componentKey)
|
Methods in org.picocontainer.classname with parameters of type ComponentAdapter | |
---|---|
MutablePicoContainer |
DefaultClassLoadingPicoContainer.addAdapter(ComponentAdapter<?> componentAdapter)
|
Uses of ComponentAdapter in org.picocontainer.containers |
---|
Methods in org.picocontainer.containers that return ComponentAdapter | ||
---|---|---|
|
ImmutablePicoContainer.getComponentAdapter(Class<T> componentType,
Class<? extends Annotation> binding)
|
|
|
EmptyPicoContainer.getComponentAdapter(Class<T> componentType,
Class<? extends Annotation> binding)
|
|
|
CompositePicoContainer.getComponentAdapter(Class<T> componentType,
Class<? extends Annotation> binding)
|
|
|
AbstractDelegatingPicoContainer.getComponentAdapter(Class<T> componentType,
Class<? extends Annotation> binding)
|
|
|
ImmutablePicoContainer.getComponentAdapter(Class<T> componentType,
NameBinding componentNameBinding)
|
|
|
EmptyPicoContainer.getComponentAdapter(Class<T> componentType,
NameBinding componentNameBinding)
|
|
|
CompositePicoContainer.getComponentAdapter(Class<T> componentType,
NameBinding nameBinding)
|
|
|
AbstractDelegatingPicoContainer.getComponentAdapter(Class<T> componentType,
NameBinding componentNameBinding)
|
|
ComponentAdapter<?> |
ImmutablePicoContainer.getComponentAdapter(Object componentKey)
|
|
ComponentAdapter<?> |
EmptyPicoContainer.getComponentAdapter(Object componentKey)
|
|
ComponentAdapter |
CompositePicoContainer.getComponentAdapter(Object componentKey)
|
|
ComponentAdapter<?> |
AbstractDelegatingPicoContainer.getComponentAdapter(Object componentKey)
|
|
|
AbstractDelegatingMutablePicoContainer.removeComponent(Object componentKey)
|
|
|
AbstractDelegatingMutablePicoContainer.removeComponentByInstance(T componentInstance)
|
Methods in org.picocontainer.containers that return types with arguments of type ComponentAdapter | ||
---|---|---|
Collection<ComponentAdapter<?>> |
ImmutablePicoContainer.getComponentAdapters()
|
|
Collection<ComponentAdapter<?>> |
EmptyPicoContainer.getComponentAdapters()
|
|
Collection<ComponentAdapter<?>> |
CompositePicoContainer.getComponentAdapters()
|
|
Collection<ComponentAdapter<?>> |
AbstractDelegatingPicoContainer.getComponentAdapters()
|
|
|
ImmutablePicoContainer.getComponentAdapters(Class<T> componentType)
|
|
|
EmptyPicoContainer.getComponentAdapters(Class<T> componentType)
|
|
|
CompositePicoContainer.getComponentAdapters(Class<T> componentType)
|
|
|
CommandLinePicoContainer.getComponentAdapters(Class<T> componentType)
|
|
|
AbstractDelegatingPicoContainer.getComponentAdapters(Class<T> componentType)
|
|
|
ImmutablePicoContainer.getComponentAdapters(Class<T> componentType,
Class<? extends Annotation> binding)
|
|
|
EmptyPicoContainer.getComponentAdapters(Class<T> componentType,
Class<? extends Annotation> binding)
|
|
|
CompositePicoContainer.getComponentAdapters(Class<T> componentType,
Class<? extends Annotation> binding)
|
|
|
AbstractDelegatingPicoContainer.getComponentAdapters(Class<T> componentType,
Class<? extends Annotation> binding)
|
Methods in org.picocontainer.containers with parameters of type ComponentAdapter | |
---|---|
MutablePicoContainer |
AbstractDelegatingMutablePicoContainer.addAdapter(ComponentAdapter<?> componentAdapter)
|
Uses of ComponentAdapter in org.picocontainer.injectors |
---|
Classes in org.picocontainer.injectors that implement ComponentAdapter | |
---|---|
class |
AbstractInjector<T>
This ComponentAdapter will instantiate a new object for each call to getComponentInstance(PicoContainer, Type) . |
class |
AnnotatedFieldInjector
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 |
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.ByReflectionMethod
|
class |
MultiInjector
|
class |
NamedFieldInjector
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. |
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
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 ComponentAdapter | ||
---|---|---|
|
FactoryInjector.findAdapterOfType(Class<U> adapterType)
|
Methods in org.picocontainer.injectors that return ComponentAdapter | ||
---|---|---|
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 |
|
|
TypedFieldInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
SetterInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
Create a SetterInjector . |
|
|
NamedMethodInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
NamedFieldInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
MultiInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
MethodInjection.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
MethodInjection.MethodInjectionByName.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
MethodInjection.MethodInjectionByReflectionMethod.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
ConstructorInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties properties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
CompositeInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
AnnotatedMethodInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
Create a SetterInjector . |
|
|
AnnotatedFieldInjection.createComponentAdapter(ComponentMonitor monitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
|
AdaptingInjection.createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
|
|
ComponentAdapter |
ProviderAdapter.findAdapterOfType(Class adapterType)
|
|
ComponentAdapter |
ProviderAdapter.getDelegate()
|
|
ComponentAdapter<T> |
FactoryInjector.getDelegate()
|
|
ComponentAdapter[] |
ConstructorInjector.CtorAndAdapters.getInjecteeAdapters()
|
|
ComponentAdapter<?> |
AbstractInjector.UnsatisfiableDependenciesException.getUnsatisfiableComponentAdapter()
|
|
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)
|
Methods in org.picocontainer.injectors with parameters of type ComponentAdapter | |
---|---|
protected 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 ComponentAdapter | |
---|---|
AbstractInjector.UnsatisfiableDependenciesException(ComponentAdapter<?> instantiatingComponentAdapter,
Type unsatisfiedDependencyType,
Set unsatisfiableDependencies,
PicoContainer leafContainer)
|
|
ConstructorInjector.CtorAndAdapters(Constructor<TYPE> ctor,
Parameter[] parameters,
ComponentAdapter[] injecteeAdapters)
|
Uses of ComponentAdapter in org.picocontainer.lifecycle |
---|
Methods in org.picocontainer.lifecycle with parameters of type ComponentAdapter | |
---|---|
boolean |
NullLifecycleStrategy.isLazy(ComponentAdapter<?> adapter)
|
boolean |
CompositeLifecycleStrategy.isLazy(ComponentAdapter<?> adapter)
|
boolean |
AbstractMonitoringLifecycleStrategy.isLazy(ComponentAdapter<?> adapter)
|
Uses of ComponentAdapter in org.picocontainer.monitors |
---|
Methods in org.picocontainer.monitors with parameters of type ComponentAdapter | ||
---|---|---|
|
WriterComponentMonitor.instantiated(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Object instantiated,
Object[] injected,
long duration)
|
|
|
NullComponentMonitor.instantiated(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Object instantiated,
Object[] injected,
long duration)
|
|
|
LifecycleComponentMonitor.instantiated(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Object instantiated,
Object[] parameters,
long duration)
|
|
|
ConsoleComponentMonitor.instantiated(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Object instantiated,
Object[] parameters,
long duration)
|
|
|
AbstractComponentMonitor.instantiated(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Object instantiated,
Object[] injected,
long duration)
|
|
|
WriterComponentMonitor.instantiating(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor)
|
|
|
NullComponentMonitor.instantiating(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor)
|
|
|
LifecycleComponentMonitor.instantiating(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor)
|
|
|
ConsoleComponentMonitor.instantiating(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor)
|
|
|
AbstractComponentMonitor.instantiating(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor)
|
|
|
WriterComponentMonitor.instantiationFailed(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Exception cause)
|
|
|
NullComponentMonitor.instantiationFailed(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Exception e)
|
|
|
LifecycleComponentMonitor.instantiationFailed(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Exception cause)
|
|
|
ConsoleComponentMonitor.instantiationFailed(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Exception cause)
|
|
|
AbstractComponentMonitor.instantiationFailed(PicoContainer container,
ComponentAdapter<T> componentAdapter,
Constructor<T> constructor,
Exception e)
|
|
void |
WriterComponentMonitor.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 |
LifecycleComponentMonitor.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 |
AbstractComponentMonitor.invoked(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
long duration,
Object[] args,
Object retVal)
|
|
Object |
WriterComponentMonitor.invoking(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
Object[] args)
|
|
Object |
NullComponentMonitor.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 |
ConsoleComponentMonitor.invoking(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
Object[] args)
|
|
Object |
AbstractComponentMonitor.invoking(PicoContainer container,
ComponentAdapter<?> componentAdapter,
Member member,
Object instance,
Object[] args)
|
|
void |
WriterComponentMonitor.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 |
LifecycleComponentMonitor.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 |
AbstractComponentMonitor.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 ComponentAdapter | ||
---|---|---|
protected
|
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 ComponentAdapter | |
---|---|
protected 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 ComponentAdapter | ||
---|---|---|
protected boolean |
CollectionComponentParameter.evaluate(ComponentAdapter adapter)
Evaluate whether the given component adapter will be part of the collective type. |
|
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 |
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 |
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 |
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)
|
|
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 |
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 |
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. |
|
protected
|
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 |
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 |
DefaultConstructorParameter.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 |
|
void |
ComponentParameter.verify(PicoContainer container,
ComponentAdapter<?> adapter,
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 |
BasicComponentParameter.verify(PicoContainer container,
ComponentAdapter<?> forAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
|
Uses of ComponentAdapter in org.picocontainer.visitors |
---|
Methods in org.picocontainer.visitors with parameters of type ComponentAdapter | |
---|---|
void |
VerifyingVisitor.visitComponentAdapter(ComponentAdapter<?> componentAdapter)
|
void |
TraversalCheckingVisitor.visitComponentAdapter(ComponentAdapter<?> componentAdapter)
Visit a ComponentAdapter that has to accept the visitor. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |