public class ModuleEvent extends EventObject
ModuleEvent objects are delivered to
SynchronousModuleListeners and ModuleListeners when a change
occurs in a module's lifecycle. A type code is used to identify the event
type for future extendability.
ModuleListener,
SynchronousModuleListener,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
INSTALLED
The module has been installed.
|
static int |
RESOLVED
The module has been resolved.
|
static int |
STARTED
The module has been started.
|
static int |
STARTING
The module is about to be activated.
|
static int |
STOPPED
The module has been stopped.
|
static int |
STOPPING
The module is about to deactivated.
|
static int |
UNINSTALLED
The module has been uninstalled.
|
source| Constructor and Description |
|---|
ModuleEvent(int type,
Module module)
Creates a module event of the specified type.
|
public static final int INSTALLED
public static final int STARTED
The module's ModuleActivator
start method has been executed if the module has a module activator
class.
Module.start(),
Constant Field Valuespublic static final int STOPPED
The module's ModuleActivator
stop method has been executed if the module has a module activator
class.
Module.stop(),
Constant Field Valuespublic static final int UNINSTALLED
Module.uninstall(),
Constant Field Valuespublic static final int RESOLVED
public static final int STARTING
The module's ModuleActivator
start method is about to be called if the module has a module activator
class. This event is only delivered to SynchronousModuleListener
s. It is not delivered to ModuleListeners.
Module.start(),
Constant Field Valuespublic static final int STOPPING
The module's ModuleActivator
stop method is about to be called if the module has a module activator
class. This event is only delivered to SynchronousModuleListener
s. It is not delivered to ModuleListeners.
Module.stop(),
Constant Field Valuespublic ModuleEvent(int type,
Module module)
type - The event type.module - The module which had a lifecycle change. This module is
used as the origin of the event.public Module getModule()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.