Project Wonder 5.0

er.jgroups
Class ERJGroupsNotificationCenter

java.lang.Object
  extended by com.webobjects.foundation.NSNotificationCenter
      extended by er.extensions.foundation.ERXRemoteNotificationCenter
          extended by 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

Field Summary
 
Fields inherited from class com.webobjects.foundation.NSNotificationCenter
_CLASS
 
Constructor Summary
protected ERJGroupsNotificationCenter()
           
 
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 er.extensions.foundation.ERXRemoteNotificationCenter
defaultCenter, postLocalNotification, postNotification, setDefaultCenter
 
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
 

Constructor Detail

ERJGroupsNotificationCenter

protected ERJGroupsNotificationCenter()
                               throws org.jgroups.ChannelException
Throws:
org.jgroups.ChannelException
Method Detail

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

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.