org.eclipse.corona.collaboration
Class CollaborationEventRouter

java.lang.Object
  extended by org.eclipse.corona.collaboration.CollaborationEventRouter
All Implemented Interfaces:
org.osgi.service.event.EventHandler
Direct Known Subclasses:
ECFEventRouter

public abstract class CollaborationEventRouter
extends java.lang.Object
implements org.osgi.service.event.EventHandler


Constructor Summary
CollaborationEventRouter(org.osgi.framework.BundleContext context)
          Create new instance of a Collaboration Event Router.
 
Method Summary
 void close()
          Close the CollaborationEventRouter.
 java.lang.String getID()
          Get the unique ID of this Collaboration Event Router.
abstract  void handleEvent(org.osgi.service.event.Event event)
           
 void postEvent(CollaborationEvent collabEvent)
           
 void sendEvent(CollaborationEvent collabEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollaborationEventRouter

public CollaborationEventRouter(org.osgi.framework.BundleContext context)
Create new instance of a Collaboration Event Router. This CollaborationEventRouter will be registered as a service.
Note: the close() method must be invoked when the CollaborationEventRouter is no longer needed.

Parameters:
context -
Method Detail

close

public void close()
Close the CollaborationEventRouter. The service that was registered will be unregistered.


getID

public java.lang.String getID()
Get the unique ID of this Collaboration Event Router. The ID is used to identify which Collaboration Event Router published the event so that it does not recieve an 'echo' copy.

Returns:
unique Id

postEvent

public void postEvent(CollaborationEvent collabEvent)
See Also:
EventAdmin.postEvent(Event)

sendEvent

public void sendEvent(CollaborationEvent collabEvent)
See Also:
EventAdmin.sendEvent(Event)

handleEvent

public abstract void handleEvent(org.osgi.service.event.Event event)
Specified by:
handleEvent in interface org.osgi.service.event.EventHandler
See Also:
Event

Copyright 2006 IBM Corporation and others.
All Rights Reserved.