Package org.int4.dirk.core.definition
Interface InjectableFactory
-
public interface InjectableFactoryFactory forInjectables.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Injectable<T>create(java.lang.reflect.Type ownerType, java.lang.reflect.Member member, java.lang.reflect.AnnotatedElement element, java.util.List<Binding> bindings, Constructable<T> constructable)CreatesInjectables given an ownerType, an optionalMemberanAnnotatedElement, a list ofBindings and aConstructable.
-
-
-
Method Detail
-
create
<T> Injectable<T> create(java.lang.reflect.Type ownerType, java.lang.reflect.Member member, java.lang.reflect.AnnotatedElement element, java.util.List<Binding> bindings, Constructable<T> constructable) throws org.int4.dirk.api.definition.DefinitionException
CreatesInjectables given an ownerType, an optionalMemberanAnnotatedElement, a list ofBindings and aConstructable.The type of the
Injectableis determined from the given member if notnulland otherwise is the same as the given owner type.The scope and qualifiers of the
Injectableare determined from the given annotated element.- Type Parameters:
T- the type of the instances produced- Parameters:
ownerType- aType, cannot benullmember- aMemberof the ownerType, can benullelement- anAnnotatedElementfrom which to get scope and qualifier annotations, cannot benullbindings- a list ofBindings, cannot benullor containnulls, but can be emptyconstructable- aConstructable, cannot benull- Returns:
- a
Injectable, nevernull - Throws:
org.int4.dirk.api.definition.DefinitionException- when the owner type does not own the member; when the injectable's type cannot be determined or is void; when the annotated element has multiple scope annotations or is inject annotated
-
-