JBoss Modular Service Kernel API 1.0.0.CR2

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.

Author:
David M. Lloyd

Method Summary
 void inject(T value)
          Inject the given value.
 void uninject()
          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 after inject() has been called.


JBoss Modular Service Kernel API 1.0.0.CR2

Copyright © 2011 JBoss, a division of Red Hat, Inc.