public class ModuleEvent extends Event<ModuleEvent.Type>
Event type generated at various times during a module's lifecycle
Modifier and Type | Class and Description |
---|---|
static class |
ModuleEvent.ModuleState |
static class |
ModuleEvent.Type |
Modifier and Type | Field and Description |
---|---|
protected java.lang.Throwable |
error |
protected java.lang.String |
msg |
protected ModuleEvent.ModuleState |
newState |
Constructor and Description |
---|
ModuleEvent(IModule<?> module,
ModuleEvent.ModuleState newState) |
ModuleEvent(IModule<?> module,
ModuleEvent.Type type) |
ModuleEvent(IModule<?> module,
java.lang.String msg) |
ModuleEvent(IModule<?> module,
java.lang.Throwable error) |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getError() |
IModule<?> |
getModule() |
ModuleEvent.ModuleState |
getNewState() |
getSource, getTimeStamp, getType
protected ModuleEvent.ModuleState newState
protected java.lang.Throwable error
protected java.lang.String msg
public ModuleEvent(IModule<?> module, ModuleEvent.Type type)
public ModuleEvent(IModule<?> module, ModuleEvent.ModuleState newState)
public ModuleEvent(IModule<?> module, java.lang.Throwable error)
public ModuleEvent(IModule<?> module, java.lang.String msg)
public IModule<?> getModule()
public ModuleEvent.ModuleState getNewState()
public java.lang.Throwable getError()