|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.component.bus.event.ComponentBusEvents
public class ComponentBusEvents
This class provides simple methods for propagation of events that happened in some component.
Every component should instantiate this class for itself as it provides a convenient way to send new events into the bus (but it is not mandatory).
There is a possibility to disable sending of all events by setting false via setBroadcasting(boolean)
.
Think of it as applying aspect to all event-broadcasting used by your class which allows you to disable the cross-cutting concern
of sending events.
Field Summary | |
---|---|
protected boolean |
broadcasting
Whether the event broadcasting is enabled. |
protected IComponentBus |
bus
|
protected IComponent |
component
|
protected java.util.logging.Logger |
log
|
Constructor Summary | |
---|---|
ComponentBusEvents(IComponentBus bus,
IComponent component,
java.util.logging.Logger log)
|
Method Summary | |
---|---|
boolean |
fatalError(java.lang.String message)
|
boolean |
fatalError(java.lang.String message,
java.lang.Throwable cause)
|
boolean |
fatalError(java.lang.Throwable cause)
|
boolean |
isBroadcasting()
When some method is called to broadcast some event then it will go through ONLY IFF isBroadcasting(). |
boolean |
paused()
|
boolean |
paused(java.lang.String message)
|
boolean |
pausedTransactional()
|
boolean |
pausedTransactional(java.lang.String message)
|
boolean |
pausing()
|
boolean |
pausing(java.lang.String message)
|
boolean |
pausingTransactional()
|
boolean |
pausingTransactional(java.lang.String message)
|
boolean |
resumed()
|
boolean |
resumed(java.lang.String message)
|
boolean |
resumedTransactional()
|
boolean |
resumedTransactional(java.lang.String message)
|
boolean |
resuming()
|
boolean |
resuming(java.lang.String message)
|
boolean |
resumingTransactional()
|
boolean |
resumingTransactional(java.lang.String message)
|
void |
setBroadcasting(boolean broadcasting)
This may enable (== true) / disable (== false) whether this object will actually be sending any events or not. |
boolean |
started()
|
boolean |
started(java.lang.String message)
|
boolean |
startedTransactional()
|
boolean |
startedTransactional(java.lang.String message)
|
boolean |
starting()
|
boolean |
starting(java.lang.String message)
|
boolean |
startingPaused()
|
boolean |
startingPaused(java.lang.String message)
|
boolean |
startingPausedTransactional()
|
boolean |
startingPausedTransactional(java.lang.String message)
|
boolean |
startingTransactional()
|
boolean |
startingTransactional(java.lang.String message)
|
boolean |
stopped()
|
boolean |
stopped(java.lang.String message)
|
boolean |
stoppedTransactional()
|
boolean |
stoppedTransactional(java.lang.String message)
|
boolean |
stopping()
|
boolean |
stopping(java.lang.String message)
|
boolean |
stoppingTransactional()
|
boolean |
stoppingTransactional(java.lang.String message)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IComponentBus bus
protected IComponent component
protected java.util.logging.Logger log
protected boolean broadcasting
Constructor Detail |
---|
public ComponentBusEvents(IComponentBus bus, IComponent component, java.util.logging.Logger log)
Method Detail |
---|
public boolean isBroadcasting()
public void setBroadcasting(boolean broadcasting)
broadcasting
- public boolean starting()
public boolean starting(java.lang.String message)
public boolean startingPaused()
public boolean startingPaused(java.lang.String message)
public boolean started()
public boolean started(java.lang.String message)
public boolean pausing()
public boolean pausing(java.lang.String message)
public boolean paused()
public boolean paused(java.lang.String message)
public boolean resuming()
public boolean resuming(java.lang.String message)
public boolean resumed()
public boolean resumed(java.lang.String message)
public boolean stopping()
public boolean stopping(java.lang.String message)
public boolean stopped()
public boolean stopped(java.lang.String message)
public boolean fatalError(java.lang.String message)
public boolean fatalError(java.lang.String message, java.lang.Throwable cause)
public boolean fatalError(java.lang.Throwable cause)
public boolean startingTransactional()
public boolean startingTransactional(java.lang.String message)
public boolean startingPausedTransactional()
public boolean startingPausedTransactional(java.lang.String message)
public boolean startedTransactional()
public boolean startedTransactional(java.lang.String message)
public boolean pausingTransactional()
public boolean pausingTransactional(java.lang.String message)
public boolean pausedTransactional()
public boolean pausedTransactional(java.lang.String message)
public boolean resumingTransactional()
public boolean resumingTransactional(java.lang.String message)
public boolean resumedTransactional()
public boolean resumedTransactional(java.lang.String message)
public boolean stoppingTransactional()
public boolean stoppingTransactional(java.lang.String message)
public boolean stoppedTransactional()
public boolean stoppedTransactional(java.lang.String message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |