Package org.int4.dirk.core.definition
Class MethodInjectableFactory
- java.lang.Object
-
- org.int4.dirk.core.definition.MethodInjectableFactory
-
public class MethodInjectableFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MethodInjectableFactory(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.Method method, java.lang.reflect.Type ownerType)Creates a newInjectable.
-
-
-
Constructor Detail
-
MethodInjectableFactory
public MethodInjectableFactory(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.Method method, java.lang.reflect.Type ownerType) throws DefinitionException
Creates a newInjectable.- Type Parameters:
T- the type of the given method's return type- Parameters:
method- aMethod, cannot benullownerType- the type of the owner of the method, cannot benulland must match withMethod.getDeclaringClass()- Returns:
- a new
Injectable, nevernull - Throws:
DefinitionException- when a definition problem was encountered
-
-