|
JBoss Modular Service Kernel API 1.0.0.Beta6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.msc.service.ValueInjectionService<T>
T - the service typepublic final class ValueInjectionService<T>

A service which propagates a value from a dependency.
| Field Summary |
|---|
| Fields inherited from interface org.jboss.msc.service.Service |
|---|
NULL, NULL_VALUE |
| Constructor Summary | |
|---|---|
ValueInjectionService()
|
|
| Method Summary | |
|---|---|
Injector<T> |
getInjector()
Get the injector, which should be used to inject the dependency. |
T |
getValue()
Get the actual value. |
void |
start(StartContext context)
Start the service. |
void |
stop(StopContext context)
Stop the service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueInjectionService()
| Method Detail |
|---|
public void start(StartContext context)
throws StartException
start in interface Service<T>context - the context which can be used to trigger an asynchronous service start
StartException - if the service could not be started for some reasonpublic void stop(StopContext context)
stop in interface Service<T>context - the context which can be used to trigger an asynchronous service stop
public T getValue()
throws IllegalStateException,
IllegalArgumentException
getValue in interface Value<T>IllegalStateException - if the value is time-sensitive and the current state does not allow retrieval.
IllegalArgumentException - when the value cannot be read due to misconfigurationpublic Injector<T> getInjector()
|
JBoss Modular Service Kernel API 1.0.0.Beta6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||