org.eclipse.corona.collaboration
Class CollaborationEventHandler

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

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


Constructor Summary
CollaborationEventHandler(org.osgi.framework.BundleContext ctxBundle, java.lang.String ctxCollab)
          Construct new CollaborationEventHandler
CollaborationEventHandler(org.osgi.framework.BundleContext ctxBundle, java.lang.String ctxCollab, java.util.Dictionary properties)
          Construct new CollaborationEventHandler
 
Method Summary
abstract  void handleCollaborationEvent(CollaborationEvent evtCollab)
          Handle Collaboration Event
 void handleEvent(org.osgi.service.event.Event evtOSGi)
          Handle the OSGi event.
 void stop()
          Stop handling events
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollaborationEventHandler

public CollaborationEventHandler(org.osgi.framework.BundleContext ctxBundle,
                                 java.lang.String ctxCollab)
Construct new CollaborationEventHandler

Parameters:
ctxBundle - BundleContext needed to register event handler service
ctxCollab - Collaboration context

CollaborationEventHandler

public CollaborationEventHandler(org.osgi.framework.BundleContext ctxBundle,
                                 java.lang.String ctxCollab,
                                 java.util.Dictionary properties)
Construct new CollaborationEventHandler

Parameters:
ctxBundle - BundleContext needed to register event handler service
ctxCollab - Collaboration context
properties - Optional event subscription properties
Method Detail

stop

public void stop()
Stop handling events


handleEvent

public void handleEvent(org.osgi.service.event.Event evtOSGi)
Handle the OSGi event. This method will convert the OSGi event into a CollaborationEvent and call handleCollaborationEvent().

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

handleCollaborationEvent

public abstract void handleCollaborationEvent(CollaborationEvent evtCollab)
Handle Collaboration Event

Parameters:
evtCollab -

Copyright 2006 IBM Corporation and others.
All Rights Reserved.