Package org.jboss.msc.inject
Interface Injector<T>
-
- Type Parameters:
T- the injected value type
- All Known Implementing Classes:
AddMethodInjector,AtomicReferenceFieldUpdaterInjector,AtomicReferenceInjector,CastingInjector,ConcurrentMapInjector,FieldInjector,InjectedValue,MapInjector,MethodInjector,RetainingInjector,SetMethodInjector
public interface Injector<T>A receiver for values that are injected from another source, typically connected to a service lifecycle.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinject(T value)Inject the given value.voiduninject()Uninject the given value (in other words, cancel or undo a previous injection).
-
-
-
Method Detail
-
inject
void inject(T value) throws InjectionException
Inject the given value.- Parameters:
value- the value- Throws:
InjectionException- if the injection failed
-
uninject
void uninject()
Uninject the given value (in other words, cancel or undo a previous injection). Only called afterinject()has been called.
-
-