fr.velossity.sample.device.impl
Class Activator

java.lang.Object
  extended by fr.velossity.sample.device.impl.Activator
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

public class Activator
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

Author:
C. Saint-Marcel

Constructor Summary
Activator()
           
 
Method Summary
 void serviceChanged(org.osgi.framework.ServiceEvent event)
          NOTIFICATION for device handler services.
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
          Notify to all requesters that the device is disappearing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
Exception
See Also:
BundleActivator.start(BundleContext)

stop

public void stop(org.osgi.framework.BundleContext context)
          throws Exception
Notify to all requesters that the device is disappearing.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
Exception
See Also:
BundleActivator.stop(BundleContext)

serviceChanged

public void serviceChanged(org.osgi.framework.ServiceEvent event)
NOTIFICATION for device handler services. OSGi callback to be notified of requesters arrival and departure.

Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener
See Also:
ServiceListener.serviceChanged(ServiceEvent)


Copyright © 2011. All Rights Reserved.