|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.
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 |
List |
getChildren()
Get a list of child gateways. |
EventGateway |
getParent()
Get the parent event gateway. |
protected static void |
print(org.apache.log4j.Logger extLogger,
OutputStream out,
String s)
|
void |
printStackTrace(int depth,
org.apache.log4j.Logger extLogger)
For debugging purposes. |
void |
printStackTrace(int depth,
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(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,
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 |
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 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)
registerLocalEventInterests
in interface EventGateway
eb
- the event broker this gateway should use to
register for local eventspublic void registerLocalEventAliases(EventBroker eb)
registerLocalEventAliases
in interface EventGateway
eb
- the event broker this gateway should use to
register aliases for local eventspublic final void specifyLocalEventInterests(ListenerFactory factory)
specifyLocalEventInterests
in interface EventGateway
factory
- the factory we wish to register with the event brokerpublic final void specifyLocalEventInterests(ListenerFactory factory, Class event)
specifyLocalEventInterests
in interface EventGateway
factory
- the factory we wish to register with the event brokerevent
- the class of events we are interested inpublic final void specifyLocalEventAliases(Class event)
specifyLocalEventAliases
in interface EventGateway
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)
deregisterLocalEventInterests
in interface EventGateway
eb
- the event broker this gateway should use to
de-register for local eventspublic void printStackTrace(int depth, org.apache.log4j.Logger extLogger)
public void printStackTrace(int depth, OutputStream out)
protected static void print(org.apache.log4j.Logger extLogger, OutputStream out, String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |