Package org.int4.dirk.core.definition
Class InstanceInjectableFactory
- java.lang.Object
-
- org.int4.dirk.core.definition.InstanceInjectableFactory
-
public class InstanceInjectableFactory extends java.lang.ObjectConstructsInjectables for a given object instance.
-
-
Constructor Summary
Constructors Constructor Description InstanceInjectableFactory(InjectableFactory factory, java.lang.annotation.Annotation singleton)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Injectable<T>create(T instance, java.lang.annotation.Annotation... qualifiers)Creates a newInjectable.
-
-
-
Constructor Detail
-
InstanceInjectableFactory
public InstanceInjectableFactory(InjectableFactory factory, java.lang.annotation.Annotation singleton)
Constructs a new instance.- Parameters:
factory- aInjectableFactory, cannot benullsingleton- a singleton annotation to use, cannot benull
-
-
Method Detail
-
create
public <T> Injectable<T> create(T instance, java.lang.annotation.Annotation... qualifiers) throws DefinitionException
Creates a newInjectable.- Type Parameters:
T- the type of the given instance- Parameters:
instance- an instance, cannot benullqualifiers- an array of qualifierAnnotations- Returns:
- a new
Injectable, nevernull - Throws:
DefinitionException- when a definition problem was encountered
-
-