Class ClassInjectableFactory


  • public class ClassInjectableFactory
    extends java.lang.Object
    Factory interface for creating Injectables given a Type.
    • Method Detail

      • create

        public <T> Injectable<T> create​(java.lang.reflect.Type type)
                                 throws org.int4.dirk.api.definition.DefinitionException
        Attempts to create a new Injectable from the given Type.
        Type Parameters:
        T - the type of the given type
        Parameters:
        type - a Type, cannot be null
        Returns:
        a Injectable, never null
        Throws:
        org.int4.dirk.api.definition.DefinitionException - when a definition problem was encountered