jodd.petite
Class SetInjectionPoint<T>

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

public class SetInjectionPoint<T>
extends java.lang.Object

Set injection point.


Field Summary
static SetInjectionPoint[] EMPTY
           
 java.lang.reflect.Field field
           
 java.lang.Class targetClass
           
 java.lang.Class<T> type
           
 
Constructor Summary
SetInjectionPoint(java.lang.reflect.Field field)
           
 
Method Summary
 java.util.Collection<T> createSet(int length)
          Creates target set for injection.
protected  java.lang.Class<T> resolveSetType(java.lang.reflect.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 java.lang.reflect.Field field

type

public final java.lang.Class<T> type

targetClass

public final java.lang.Class targetClass
Constructor Detail

SetInjectionPoint

public SetInjectionPoint(java.lang.reflect.Field field)
Method Detail

resolveSetType

protected java.lang.Class<T> resolveSetType(java.lang.reflect.Field field)

createSet

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



Copyright © 2003-2011 Jodd Team