Class FieldInjectableFactory


  • public class FieldInjectableFactory
    extends java.lang.Object
    Constructs Injectables for Field values of a specific owner Type.
    • Method Detail

      • create

        public <T> Injectable<T> create​(java.lang.reflect.Field field,
                                        java.lang.reflect.Type ownerType)
                                 throws DefinitionException
        Creates a new Injectable.
        Type Parameters:
        T - the type of the given field
        Parameters:
        field - a Field, cannot be null
        ownerType - the type of the owner of the field, cannot be null and must match with Field.getDeclaringClass()
        Returns:
        a new Injectable, never null
        Throws:
        DefinitionException - when a definition problem was encountered