org.eclipse.corona.collaboration
Class Activator

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.corona.collaboration.Activator
All Implemented Interfaces:
ICollaborationEventAdmin, org.osgi.framework.BundleActivator, org.osgi.service.event.EventHandler

public class Activator
extends org.eclipse.core.runtime.Plugin
implements ICollaborationEventAdmin, org.osgi.service.event.EventHandler

OSGi Bundle Activator for Corona Collaboration


Field Summary
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
Activator()
           
 
Method Summary
static Activator getDefault()
          Get the singleton instance of the Collaboration's BundleActivator
 ICollaborationEventAdmin getEventAdmin()
          Get the Collaboration Event Administator
static CoronaLogService getLogService()
          Get the Corona log service for this plug-in
 void handleEvent(org.osgi.service.event.Event event)
          Handle all Collaboration events This event handler will forward the collaboration event to all CollaborationEventRouter's.
 void postEvent(CollaborationEvent collabEvent)
          Post a Collaboration Event to the OSGi event service.
 void sendEvent(CollaborationEvent collabEvent)
          Send a Collaboration Event.
 void setDebugging(boolean value)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, shutdown, startup, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.core.runtime.Plugin
Throws:
java.lang.Exception
See Also:
BundleActivator.start(org.osgi.framework.BundleContext)

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.core.runtime.Plugin
Throws:
java.lang.Exception
See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)

getDefault

public static Activator getDefault()
Get the singleton instance of the Collaboration's BundleActivator

Returns:
the singleton instance

getLogService

public static CoronaLogService getLogService()
Get the Corona log service for this plug-in

Returns:

getEventAdmin

public ICollaborationEventAdmin getEventAdmin()
Get the Collaboration Event Administator

Returns:
ICollaborationEventAdmin object

postEvent

public void postEvent(CollaborationEvent collabEvent)
Description copied from interface: ICollaborationEventAdmin
Post a Collaboration Event to the OSGi event service.

Specified by:
postEvent in interface ICollaborationEventAdmin
Parameters:
collabEvent - is the collaboration event to be posted.
See Also:
EventAdmin.postEvent(Event)

sendEvent

public void sendEvent(CollaborationEvent collabEvent)
Send a Collaboration Event.

Specified by:
sendEvent in interface ICollaborationEventAdmin
Parameters:
collabEvent - is the collaboration event to be posted.
See Also:
EventAdmin.sendEvent(Event)

handleEvent

public void handleEvent(org.osgi.service.event.Event event)
Handle all Collaboration events This event handler will forward the collaboration event to all CollaborationEventRouter's. It first will check to ensure that the event being handled did not originate from the event router.

Specified by:
handleEvent in interface org.osgi.service.event.EventHandler
Parameters:
event -

setDebugging

public void setDebugging(boolean value)
Overrides:
setDebugging in class org.eclipse.core.runtime.Plugin

Copyright 2006 IBM Corporation and others.
All Rights Reserved.