public interface SynchronousModuleListener extends ModuleListener
ModuleEvent listener. SynchronousModuleListener
is a listener interface that may be implemented by a module developer. When a
ModuleEvent is fired, it is synchronously delivered to a
SynchronousModuleListener. The Runtime may deliver
ModuleEvent objects to a SynchronousModuleListener out of
order and may concurrently call and/or reenter a
SynchronousModuleListener.
For ModuleEvent type STARTED, the Runtime must not
hold the referenced module's "state change" lock when the
ModuleEvent is delivered to a SynchronousModuleListener. For
the other ModuleEvent types, the Runtime must hold the referenced
module's "state change" lock when the ModuleEvent is
delivered to a SynchronousModuleListener. A
SynchronousModuleListener cannot directly call life cycle methods on
the referenced module when the Runtime is holding the referenced module's
"state change" lock.
A SynchronousModuleListener object is registered with the Runtime
using the ModuleContext.addModuleListener(ModuleListener) method.
SynchronousModuleListener objects are called with a
ModuleEvent object when a module has been installed, resolved,
starting, started, stopping, stopped, updated, unresolved, or uninstalled.
Unlike normal ModuleListener objects,
SynchronousModuleListeners are synchronously called during module
lifecycle processing. The module lifecycle processing will not proceed until
all SynchronousModuleListeners have completed.
SynchronousModuleListener objects will be called prior to
ModuleListener objects.
ModuleEventmoduleChangedCopyright © 2015 JBoss by Red Hat. All rights reserved.