er.jgroups
Class ERJGroupsNotificationCenter
java.lang.Object
com.webobjects.foundation.NSNotificationCenter
er.extensions.foundation.ERXRemoteNotificationCenter
er.jgroups.ERJGroupsNotificationCenter
public class ERJGroupsNotificationCenter
- extends ERXRemoteNotificationCenter
NSNotificationCenter that can post simple notifications to other apps.
Serializes the NSNotification, so be sure not to put EOs or similar stuff
into it. Also the object
is sent into the stream, so you must
override equals()
so it also gets the notification on the
other side (totally untested).
Note: you must specifically register here, not at NSNotificationCenter.defaultCenter()
.
- Author:
- ak
Fields inherited from class com.webobjects.foundation.NSNotificationCenter |
_CLASS |
Method Summary |
static void |
install()
|
void |
postRemoteNotification(com.webobjects.foundation.NSNotification notification)
Post a notification to the remote listeners. |
protected void |
writeNotification(com.webobjects.foundation.NSNotification notification)
|
Methods inherited from class com.webobjects.foundation.NSNotificationCenter |
_getEntry, addObserver, addOmniscientObserver, postNotification, postNotification, removeObserver, removeObserver, removeOmniscientObserver, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ERJGroupsNotificationCenter
protected ERJGroupsNotificationCenter()
throws org.jgroups.ChannelException
- Throws:
org.jgroups.ChannelException
install
public static void install()
postRemoteNotification
public void postRemoteNotification(com.webobjects.foundation.NSNotification notification)
- Description copied from class:
ERXRemoteNotificationCenter
- Post a notification to the remote listeners.
- Specified by:
postRemoteNotification
in class ERXRemoteNotificationCenter
writeNotification
protected void writeNotification(com.webobjects.foundation.NSNotification notification)
throws org.jgroups.ChannelNotConnectedException,
org.jgroups.ChannelClosedException,
java.io.IOException
- Throws:
org.jgroups.ChannelNotConnectedException
org.jgroups.ChannelClosedException
java.io.IOException
Copyright © 2002 – 2007 Project Wonder.