|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjtge.engine.handler.Subject
Provides a means to broadcast received commands to several consumers.
| Constructor Summary | |
Subject()
Create a subject. |
|
| Method Summary | |
void |
handle(ICommand command)
Handle a command. |
void |
register(IConsumer observer)
Register an observer. |
void |
unregister(IConsumer observer)
Unregister an observer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Subject()
| Method Detail |
public final void register(IConsumer observer)
If the consumer was previously registered this method has no effect.
observer - the consumer to register (should not be null)public final void unregister(IConsumer observer)
observer - the consumer to unregisterpublic final void handle(ICommand command)
handle in interface IConsumercommand - the command to handle
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||