jodd.petite
Class SetInjectionPoint<T>

java.lang.Object
  extended by jodd.petite.SetInjectionPoint<T>

public class SetInjectionPoint<T>
extends Object

Set injection point.


Field Summary
static SetInjectionPoint[] EMPTY
           
 Field field
           
 Class targetClass
           
 Class<T> type
           
 
Constructor Summary
SetInjectionPoint(Field field)
           
 
Method Summary
 Collection<T> createSet(int length)
          Creates target set for injection.
protected  Class<T> resolveSetType(Field field)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final SetInjectionPoint[] EMPTY

field

public final Field field

type

public final Class<T> type

targetClass

public final Class targetClass
Constructor Detail

SetInjectionPoint

public SetInjectionPoint(Field field)
Method Detail

resolveSetType

protected Class<T> resolveSetType(Field field)

createSet

public Collection<T> createSet(int length)
Creates target set for injection. For now it creates HashSet, but custom implementation can change this setting.