|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.barracuda.core.event.DefaultEventGateway
Default implementation of an EventGateway. An event gateway just indicates that the class has an interest in events, and as such needs access to the EventBroker in order to register its listeners there.
Field Summary | |
protected static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
DefaultEventGateway()
|
Method Summary | |
void |
add(EventGateway eg)
Add an event gateway to this one |
void |
deregister(EventBroker eb)
Ask all interested parties to de-register with the EventBroker |
void |
deregisterLocalEventInterests(EventBroker eb)
Deregister any local interests in the EventBroker |
java.util.List |
getChildren()
Get a list of child gateways. |
EventGateway |
getParent()
Get the parent event gateway. |
protected static void |
print(org.apache.log4j.Category category,
java.io.OutputStream out,
java.lang.String s)
|
void |
printStackTrace(int depth,
org.apache.log4j.Category category)
For debugging purposes. |
void |
printStackTrace(int depth,
java.io.OutputStream out)
For debugging purposes. |
void |
register(EventBroker eb)
Ask all interested parties to register with the EventBroker |
void |
registerLocalEventAliases(EventBroker eb)
Register any local event aliases in the EventBroker |
void |
registerLocalEventInterests(EventBroker eb)
Register any local interests in the EventBroker |
void |
remove(EventGateway eg)
Remove an event gateway from this one |
void |
setParent(EventGateway eg)
Set the parent event gateway. |
void |
specifyLocalEventAliases(java.lang.Class event)
Rather than overriding the registerLocalEventAliases method, you can just invoke this method instead for type of event you want to manually alias. |
void |
specifyLocalEventInterests(ListenerFactory factory)
Rather than overriding the registerLocalEventInterests method, you can just invoke this method instead for each interest you'd like to register. |
void |
specifyLocalEventInterests(ListenerFactory factory,
java.lang.Class event)
Rather than overriding the registerLocalEventInterests method, you can just invoke this method instead for each interest you'd like to register. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
Constructor Detail |
public DefaultEventGateway()
Method Detail |
public final void setParent(EventGateway eg)
setParent
in interface EventGateway
eg
- the parent event gatewaypublic final EventGateway getParent()
getParent
in interface EventGateway
public final void add(EventGateway eg)
add
in interface EventGateway
eg
- the event gateway to be addedpublic final void remove(EventGateway eg)
remove
in interface EventGateway
eg
- the event gateway to be removedpublic java.util.List getChildren()
getChildren
in interface EventGateway
public final void register(EventBroker eb)
register
in interface EventGateway
eb
- the event broker this gateway should use to
register for eventspublic void registerLocalEventInterests(EventBroker eb)
eb
- the event broker this gateway should use to
register for local eventspublic void registerLocalEventAliases(EventBroker eb)
eb
- the event broker this gateway should use to
register aliases for local eventspublic final void specifyLocalEventInterests(ListenerFactory factory)
factory
- the factory we wish to register with the event brokerpublic final void specifyLocalEventInterests(ListenerFactory factory, java.lang.Class event)
factory
- the factory we wish to register with the event brokerevent
- the class of events we are interested inpublic final void specifyLocalEventAliases(java.lang.Class event)
event
- the class of events we are interested in registering
aliases forpublic final void deregister(EventBroker eb)
deregister
in interface EventGateway
eb
- the event broker this gateway should use to
de-register for eventspublic void deregisterLocalEventInterests(EventBroker eb)
eb
- the event broker this gateway should use to
de-register for local eventspublic void printStackTrace(int depth, org.apache.log4j.Category category)
public void printStackTrace(int depth, java.io.OutputStream out)
protected static void print(org.apache.log4j.Category category, java.io.OutputStream out, java.lang.String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |