T
- the service typeService.newInstance(Consumer<T>,T
instead. This
class will be removed in a future release.@Deprecated public final class ValueInjectionService<T> extends java.lang.Object implements Service<T>
NULL, NULL_VALUE
Constructor and Description |
---|
ValueInjectionService()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Injector<T> |
getInjector()
Deprecated.
Get the injector, which should be used to inject the dependency.
|
T |
getValue()
Deprecated.
Get the actual dependency value.
|
void |
start(StartContext context)
Deprecated.
Start the service.
|
void |
stop(StopContext context)
Deprecated.
Stop the service.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newInstance
public void start(StartContext context)
If the service start involves any activities that may block, the asynchronous mechanism
provided by the context
should be used. See the class javadoc
for details.
public void stop(StopContext context)
If the service start involves any activities that may block, the asynchronous mechanism
provided by the context
should be used. See the class javadoc
for details.
public T getValue() throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
Copyright © 2012 JBoss, a division of Red Hat, Inc.