|
JBoss Modular Service Kernel API 1.0.4.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.msc.service.AbstractServiceListener<Object>
org.jboss.msc.service.MultipleRemoveListener<T>
T - the callback parameter typepublic final class MultipleRemoveListener<T>
A service listener which calls a callback once all of the services it was attached to have been removed.
| Nested Class Summary | |
|---|---|
static interface |
MultipleRemoveListener.Callback<T>
A generalized callback for when all services are removed. |
| Nested classes/interfaces inherited from interface org.jboss.msc.service.ServiceListener |
|---|
ServiceListener.Inheritance |
| Method Summary | ||
|---|---|---|
static MultipleRemoveListener<LifecycleContext> |
create(LifecycleContext lifecycleContext)
Construct a new instance which calls the lifecycle complete() method when done. |
|
static
|
create(MultipleRemoveListener.Callback<T> callback,
T attachment)
Construct a new instance. |
|
static MultipleRemoveListener<Runnable> |
create(Runnable task)
Construct a new instance. |
|
void |
done()
Called when this listener has been added to all relevant services. |
|
void |
listenerAdded(ServiceController<?> controller)
The listener has been added to a controller. |
|
void |
transition(ServiceController<? extends Object> controller,
ServiceController.Transition transition)
The service has transitioned to a new sub-state. |
|
| Methods inherited from class org.jboss.msc.service.AbstractServiceListener |
|---|
dependencyFailed, dependencyFailureCleared, immediateDependencyAvailable, immediateDependencyUnavailable, serviceRemoveRequestCleared, serviceRemoveRequested, transitiveDependencyAvailable, transitiveDependencyUnavailable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> MultipleRemoveListener<T> create(MultipleRemoveListener.Callback<T> callback,
T attachment)
T - the type of the attachmentcallback - the callback to invokeattachment - the attachment to pass to the callback
public static MultipleRemoveListener<Runnable> create(Runnable task)
task - the task to call upon completion
public static MultipleRemoveListener<LifecycleContext> create(LifecycleContext lifecycleContext)
complete() method when done.
lifecycleContext - the context to notify
public void listenerAdded(ServiceController<?> controller)
listenerAdded in interface ServiceListener<Object>listenerAdded in class AbstractServiceListener<Object>controller - the controller that this listener was added to
public void transition(ServiceController<? extends Object> controller,
ServiceController.Transition transition)
AbstractServiceListener
transition in interface ServiceListener<Object>transition in class AbstractServiceListener<Object>controller - the controllertransition - the transition that occurredpublic void done()
|
JBoss Modular Service Kernel API 1.0.4.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||