|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StartContext
The start lifecycle context.
Method Summary | |
---|---|
void |
failed(StartException reason)
Call when an asynchronous start lifecycle action has failed for some reason. |
ServiceTarget |
getChildTarget()
Get a service target which may be used to add child services. |
Methods inherited from interface org.jboss.msc.service.LifecycleContext |
---|
asynchronous, complete, execute, getController, getElapsedTime |
Method Detail |
---|
void failed(StartException reason) throws IllegalStateException
reason
- the reason for the failure
IllegalStateException
- if called before LifecycleContext.asynchronous()
is called, or if the action was already
completedServiceTarget getChildTarget()
Any listeners added directly to this service target will be added to child services when they are installed.
Listeners added directly to this service target will be applied recursively to descendants as well, as long as
the listener exists on this service target. To avoid this recursive behavior, apply listeners to any sub-target
of this this target (see ServiceTarget.subTarget()
for more information about sub-targets).
Note that any listeners existing on the starting service are not applied to child services automatically; they must be explicitly added to the child service target.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |