jodd.petite
Class InjectionPointFactory

java.lang.Object
  extended by jodd.petite.InjectionPointFactory

public class InjectionPointFactory
extends Object

Factory for injection points. Responsible also for resolving default references when none specified.


Field Summary
protected  PetiteConfig petiteConfig
           
 
Constructor Summary
InjectionPointFactory(PetiteConfig petiteConfig)
           
 
Method Summary
 CtorInjectionPoint createCtorInjectionPoint(Constructor constructor, String[][] references)
          Creates new ctor injection point.
 MethodInjectionPoint createMethodInjectionPoint(Method method, String[][] references)
          Creates new method injection point.
 PropertyInjectionPoint createPropertyInjectionPoint(Field field, String[] references)
          Creates new property injection point.
 SetInjectionPoint createSetInjectionPoint(Field field)
          Creates new set injection point.
protected  String[] fieldDefaultReferences(Field field)
          Builds default field references.
protected  String[][] methodOrCtorDefaultReferences(AccessibleObject accobj, Class[] paramTypes)
          Builds default method references.
protected  void removeDuplicateNames(String[] references)
          Removes later duplicated references.
protected  void removeDuplicateNames(String[][] referencesArr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

petiteConfig

protected final PetiteConfig petiteConfig
Constructor Detail

InjectionPointFactory

public InjectionPointFactory(PetiteConfig petiteConfig)
Method Detail

createCtorInjectionPoint

public CtorInjectionPoint createCtorInjectionPoint(Constructor constructor,
                                                   String[][] references)
Creates new ctor injection point.


createMethodInjectionPoint

public MethodInjectionPoint createMethodInjectionPoint(Method method,
                                                       String[][] references)
Creates new method injection point.


createPropertyInjectionPoint

public PropertyInjectionPoint createPropertyInjectionPoint(Field field,
                                                           String[] references)
Creates new property injection point.


createSetInjectionPoint

public SetInjectionPoint createSetInjectionPoint(Field field)
Creates new set injection point.


fieldDefaultReferences

protected String[] fieldDefaultReferences(Field field)
Builds default field references.


methodOrCtorDefaultReferences

protected String[][] methodOrCtorDefaultReferences(AccessibleObject accobj,
                                                   Class[] paramTypes)
Builds default method references.


removeDuplicateNames

protected void removeDuplicateNames(String[][] referencesArr)

removeDuplicateNames

protected void removeDuplicateNames(String[] references)
Removes later duplicated references.