Package org.int4.dirk.core.definition
Class FieldInjectableFactory
- java.lang.Object
-
- org.int4.dirk.core.definition.FieldInjectableFactory
-
public class FieldInjectableFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FieldInjectableFactory(BindingProvider bindingProvider, InjectableFactory injectableFactory)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Injectable<T>create(java.lang.reflect.Field field, java.lang.reflect.Type ownerType)Creates a newInjectable.
-
-
-
Constructor Detail
-
FieldInjectableFactory
public FieldInjectableFactory(BindingProvider bindingProvider, InjectableFactory injectableFactory)
Constructs a new instance.- Parameters:
bindingProvider- aBindingProvider, cannot benullinjectableFactory- aInjectableFactory, cannot benull
-
-
Method Detail
-
create
public <T> Injectable<T> create(java.lang.reflect.Field field, java.lang.reflect.Type ownerType) throws org.int4.dirk.api.definition.DefinitionException
Creates a newInjectable.- Type Parameters:
T- the type of the given field- Parameters:
field- aField, cannot benullownerType- the type of the owner of the field, cannot benulland must match withField.getDeclaringClass()- Returns:
- a new
Injectable, nevernull - Throws:
org.int4.dirk.api.definition.DefinitionException- when a definition problem was encountered
-
-