|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated @Contract public interface InhabitantActivator
Contract for handling the activation and releasing of an inhabitant. Useful when the inhabitant needs to be activated in a particular thread context for example.
RunLevelService
Method Summary | |
---|---|
void |
activate(Inhabitant<?> inhabitant)
Deprecated. Implementations are generally expected to call Inhabitant.get() at
some point. |
void |
awaitCompletion()
Deprecated. Called after all activate(org.jvnet.hk2.component.Inhabitant) and deactivate(org.jvnet.hk2.component.Inhabitant)
calls are made to wait for completion of a progression to a particular run level. |
void |
awaitCompletion(long timeout,
TimeUnit unit)
Deprecated. Called after all activate(org.jvnet.hk2.component.Inhabitant) and deactivate(org.jvnet.hk2.component.Inhabitant)
calls are made to wait for completion of a progression to a particular run level. |
void |
deactivate(Inhabitant<?> inhabitant)
Deprecated. Implementations are generally expected to call Inhabitant.release() at
some point. |
Method Detail |
---|
void activate(Inhabitant<?> inhabitant)
Inhabitant.get()
at
some point.
The DefaultRunLevelService
calls activate for all Inhabitants qualifying
in the activated RunLevel regardless of whether or not they need activation.
inhabitant
- the inhabitant to activatevoid deactivate(Inhabitant<?> inhabitant)
Inhabitant.release()
at
some point.
The DefaultRunLevelService
calls deactivate for all Inhabitants qualifying
in the activated RunLevel regardless of whether or not they need releasing.
inhabitant
- the inhabitant to releasevoid awaitCompletion() throws ExecutionException, InterruptedException, TimeoutException
activate(org.jvnet.hk2.component.Inhabitant)
and deactivate(org.jvnet.hk2.component.Inhabitant)
calls are made to wait for completion of a progression to a particular run level.
This is useful in the case where the implementation is asynchronous in nature.
Generally, there is one awaitCompletion() call per RunLevel being processed.
ExecutionException
InterruptedException
TimeoutException
void awaitCompletion(long timeout, TimeUnit unit) throws ExecutionException, InterruptedException, TimeoutException
activate(org.jvnet.hk2.component.Inhabitant)
and deactivate(org.jvnet.hk2.component.Inhabitant)
calls are made to wait for completion of a progression to a particular run level.
This is useful in the case where the implementation is asynchronous in nature.
Generally, there is one awaitCompletion() call per RunLevel being processed.
ExecutionException
InterruptedException
TimeoutException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |