|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.util.event.AbstractEventBus
public abstract class AbstractEventBus
abstract class for common services of the system bus
| Constructor Summary | |
|---|---|
AbstractEventBus()
|
|
| Method Summary | |
|---|---|
void |
deregisterFor(GenericEventListener gel,
OLATResourceable ores)
deregisters/removes a GenericEventListener to listen to events concerning the OLATResourceable ores |
abstract void |
fireEventToListenersOf(MultiUserEvent event,
OLATResourceable ores)
fires an event to all listeners interested in events concerning this OLATResourceable ores. |
abstract int |
getListeningIdentityCntFor(OLATResourceable ores)
Note for cluster: this method is cluster-safe. |
java.util.Set |
getListeningIdentityNamesFor(OLATResourceable ores)
returns a Set of Identities which had at the very moment controllers which were listening to the OLATResourceable ores. |
java.util.Map<java.lang.String,org.olat.core.util.event.EventAgency> |
getUnmodifiableInfoCenter()
used only for monitoring purposes |
void |
registerFor(GenericEventListener gel,
Identity identity,
OLATResourceable ores)
registers a GenericEventListener to listen to events concerning the OLATResourceable ores |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractEventBus()
| Method Detail |
|---|
public void registerFor(GenericEventListener gel,
Identity identity,
OLATResourceable ores)
EventBus
registerFor in interface EventBusgel - the GenericEventListener / the class implementing itidentity - the identity to whicinfoh the listening (controller)
belongs, or null if that is not known or the olat-system itself.ores - the OLATResourceable
public void deregisterFor(GenericEventListener gel,
OLATResourceable ores)
EventBus
deregisterFor in interface EventBuspublic java.util.Set getListeningIdentityNamesFor(OLATResourceable ores)
EventBus
getListeningIdentityNamesFor in interface EventBusores - the OLATResourceable
public abstract int getListeningIdentityCntFor(OLATResourceable ores)
EventBus
getListeningIdentityCntFor in interface EventBusores - the resourceable
public abstract void fireEventToListenersOf(MultiUserEvent event,
OLATResourceable ores)
EventBus
fireEventToListenersOf in interface EventBusevent - the OLATResourceableEvent (must be serializable!, for multiple
server olat installations)ores - the OLATResourceablepublic java.util.Map<java.lang.String,org.olat.core.util.event.EventAgency> getUnmodifiableInfoCenter()
getUnmodifiableInfoCenter in interface EventBuspublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||