org.universAAL.lddi.fs20.exporter
Class Activator
java.lang.Object
org.universAAL.lddi.fs20.exporter.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
This bundle notices OSGi service events.
If a new service is registered the received device will be stored.
If a service is modified it will send a uAAL context event.
Also it notices service requests from uAAL and handles them.
- Author:
- Steeven Zeiss Fraunhofer IGD (steeven.zeiss@igd.fraunhofer.de)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
public static org.osgi.framework.BundleContext context
mc
public static ModuleContext mc
Activator
public Activator()
start
public void start(org.osgi.framework.BundleContext context)
throws Exception
- Specified by:
start
in interface org.osgi.framework.BundleActivator
- Throws:
Exception
stop
public void stop(org.osgi.framework.BundleContext arg0)
throws Exception
- Specified by:
stop
in interface org.osgi.framework.BundleActivator
- Throws:
Exception
serviceChanged
public void serviceChanged(org.osgi.framework.ServiceEvent event)
- Listens on OSGi service events and handles them
If a new service is registered the received device will be stored.
If a service is modified it will send a uAAL context event.
- Specified by:
serviceChanged
in interface org.osgi.framework.ServiceListener
getDisplays
public static Vector<FS20RGBSADevice> getDisplays()
getMotionsensors
public static Vector<FS20PIRxDevice> getMotionsensors()
getGongs
public static Vector<FS20SIGDevice> getGongs()
getFMSs
public static Vector<FS20FMSDevice> getFMSs()
getSwitches
public static Vector<FS20STDevice> getSwitches()
Copyright © 2014 universAAL Consortium. All Rights Reserved.