Package net.anwiba.commons.injection
Class ValueInjector
- java.lang.Object
-
- net.anwiba.commons.injection.ValueInjector
-
- All Implemented Interfaces:
IInjectingObjectFactory,IValueInjector
public class ValueInjector extends java.lang.Object implements IValueInjector
-
-
Constructor Summary
Constructors Constructor Description ValueInjector(IInjectionValueProvider valuesProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tcreate(java.lang.Class<T> clazz)<T> Tcreate(IInjectingFactory<T> factory)<T> voidinject(T object)
-
-
-
Constructor Detail
-
ValueInjector
public ValueInjector(IInjectionValueProvider valuesProvider)
-
-
Method Detail
-
create
public <T> T create(IInjectingFactory<T> factory) throws CreationException
- Specified by:
createin interfaceIInjectingObjectFactory- Throws:
CreationException
-
create
public <T> T create(java.lang.Class<T> clazz) throws CreationException- Specified by:
createin interfaceIInjectingObjectFactory- Throws:
CreationException
-
inject
public <T> void inject(T object) throws InjectionException- Specified by:
injectin interfaceIValueInjector- Throws:
InjectionException
-
-