org.picocontainer.injectors
Class SingleMemberInjector<T>

java.lang.Object
  extended by org.picocontainer.adapters.AbstractAdapter<T>
      extended by org.picocontainer.injectors.AbstractInjector<T>
          extended by org.picocontainer.injectors.SingleMemberInjector<T>
All Implemented Interfaces:
Serializable, ComponentAdapter<T>, ComponentMonitorStrategy, Injector<T>, LifecycleStrategy
Direct Known Subclasses:
ConstructorInjector, MethodInjector

public abstract class SingleMemberInjector<T>
extends AbstractInjector<T>

Injection will happen in a single member function on the component.

Author:
Paul Hammant
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.picocontainer.injectors.AbstractInjector
AbstractInjector.AmbiguousComponentResolutionException, AbstractInjector.CyclicDependencyException, AbstractInjector.NotConcreteRegistrationException, AbstractInjector.UnsatisfiableDependenciesException
 
Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter
ComponentAdapter.NOTHING
 
Field Summary
 
Fields inherited from class org.picocontainer.injectors.AbstractInjector
lifecycleStrategy, parameters, verifyingGuard
 
Constructor Summary
SingleMemberInjector(Object componentKey, Class componentImplementation, Parameter[] parameters, ComponentMonitor monitor, LifecycleStrategy lifecycleStrategy, boolean useNames)
           
 
Method Summary
protected  Class box(Class parameterType)
          TODO: shall it box everything? a bit too few for me (konstantin)
protected  Annotation[] getBindings(Annotation[][] annotationss)
           
protected  Object[] getMemberArguments(PicoContainer container, AccessibleObject member, Class[] parameterTypes, Annotation[] bindings)
           
protected  com.thoughtworks.paranamer.CachingParanamer getParanamer()
           
 
Methods inherited from class org.picocontainer.injectors.AbstractInjector
accept, caughtIllegalAccessException, caughtIllegalAccessException, caughtInstantiationException, caughtInvocationTargetException, createDefaultParameters, dispose, getComponentInstance, getComponentInstance, getDescriptor, hasLifecycle, newInstance, start, stop, useNames, verify
 
Methods inherited from class org.picocontainer.adapters.AbstractAdapter
changeMonitor, checkTypeCompatibility, currentMonitor, findAdapterOfType, getComponentImplementation, getComponentKey, getDelegate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.picocontainer.Injector
decorateComponentInstance
 
Methods inherited from interface org.picocontainer.ComponentAdapter
findAdapterOfType, getComponentImplementation, getComponentKey, getDelegate
 

Constructor Detail

SingleMemberInjector

public SingleMemberInjector(Object componentKey,
                            Class componentImplementation,
                            Parameter[] parameters,
                            ComponentMonitor monitor,
                            LifecycleStrategy lifecycleStrategy,
                            boolean useNames)
Method Detail

getParanamer

protected com.thoughtworks.paranamer.CachingParanamer getParanamer()

box

protected Class box(Class parameterType)
TODO: shall it box everything? a bit too few for me (konstantin)

Overrides:
box in class AbstractInjector<T>

getMemberArguments

protected Object[] getMemberArguments(PicoContainer container,
                                      AccessibleObject member,
                                      Class[] parameterTypes,
                                      Annotation[] bindings)

getBindings

protected Annotation[] getBindings(Annotation[][] annotationss)


Copyright © 2003-2010 Codehaus. All Rights Reserved.