org.picocontainer.injectors
Class AnnotatedFieldInjector

java.lang.Object
  extended by org.picocontainer.adapters.AbstractAdapter
      extended by org.picocontainer.injectors.AbstractInjector
          extended by org.picocontainer.injectors.IterativeInjector
              extended by org.picocontainer.injectors.AnnotatedFieldInjector
All Implemented Interfaces:
Serializable, ComponentAdapter, ComponentMonitorStrategy, LifecycleStrategy

public class AnnotatedFieldInjector
extends IterativeInjector

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
 
Field Summary
 
Fields inherited from class org.picocontainer.injectors.IterativeInjector
injectionMembers, injectionTypes
 
Fields inherited from class org.picocontainer.injectors.AbstractInjector
lifecycleStrategy, parameters, verifyingGuard
 
Constructor Summary
AnnotatedFieldInjector(Object key, Class impl, Parameter[] parameters, ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Class injectionAnnotation)
           
 
Method Summary
protected  void initializeInjectionMembersAndTypeLists()
           
protected  void injectIntoMember(Member member, Object componentInstance, Object toInject)
           
protected  boolean isAnnotatedForInjection(Field field)
           
 String toString()
           
 
Methods inherited from class org.picocontainer.injectors.IterativeInjector
getComponentInstance, getConstructor, getOrMakeInstance, isInjectorMethod, unsatisfiedDependencies, verify
 
Methods inherited from class org.picocontainer.injectors.AbstractInjector
accept, caughtIllegalAccessException, caughtIllegalAccessException, caughtInstantiationException, caughtInvocationTargetException, createDefaultParameters, dispose, hasLifecycle, newInstance, start, stop
 
Methods inherited from class org.picocontainer.adapters.AbstractAdapter
changeMonitor, checkTypeCompatibility, currentMonitor, findAdapterOfType, getComponentImplementation, getComponentKey, getDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotatedFieldInjector

public AnnotatedFieldInjector(Object key,
                              Class impl,
                              Parameter[] parameters,
                              ComponentMonitor componentMonitor,
                              LifecycleStrategy lifecycleStrategy,
                              Class injectionAnnotation)
Method Detail

initializeInjectionMembersAndTypeLists

protected void initializeInjectionMembersAndTypeLists()
Overrides:
initializeInjectionMembersAndTypeLists in class IterativeInjector

isAnnotatedForInjection

protected boolean isAnnotatedForInjection(Field field)

injectIntoMember

protected void injectIntoMember(Member member,
                                Object componentInstance,
                                Object toInject)
                         throws IllegalAccessException,
                                InvocationTargetException
Overrides:
injectIntoMember in class IterativeInjector
Throws:
IllegalAccessException
InvocationTargetException

toString

public String toString()
Overrides:
toString in class AbstractAdapter
Returns:
Returns the ComponentAdapter's class name and the component's key.
See Also:
Object.toString()


Copyright © 2003-2007 Codehaus. All Rights Reserved.