Package org.int4.dirk.core.definition
Class ClassInjectableFactory
- java.lang.Object
-
- org.int4.dirk.core.definition.ClassInjectableFactory
-
public class ClassInjectableFactory extends java.lang.ObjectFactory interface for creatingInjectables given aType.
-
-
Constructor Summary
Constructors Constructor Description ClassInjectableFactory(BindingProvider bindingProvider, InjectableFactory injectableFactory, LifeCycleCallbacksFactory lifeCycleCallbacksFactory)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Injectable<T>create(java.lang.reflect.Type type)Attempts to create a newInjectablefrom the givenType.
-
-
-
Constructor Detail
-
ClassInjectableFactory
public ClassInjectableFactory(BindingProvider bindingProvider, InjectableFactory injectableFactory, LifeCycleCallbacksFactory lifeCycleCallbacksFactory)
Constructs a new instance.- Parameters:
bindingProvider- aBindingProvider, cannot benullinjectableFactory- aInjectableFactory, cannot benulllifeCycleCallbacksFactory- aLifeCycleCallbacksFactory, cannot benull
-
-
Method Detail
-
create
public <T> Injectable<T> create(java.lang.reflect.Type type) throws DefinitionException
Attempts to create a newInjectablefrom the givenType.- Type Parameters:
T- the type of the given type- Parameters:
type- aType, cannot benull- Returns:
- a
Injectable, nevernull - Throws:
DefinitionException- when a definition problem was encountered
-
-