public class DimmerLightListener extends ExporterListener
context, discoveryLock, filter, setOfDevices
Constructor and Description |
---|
DimmerLightListener(org.osgi.framework.BundleContext context)
Constructor to be used in the exporter.
|
Modifier and Type | Method and Description |
---|---|
protected void |
registeruAALService(org.osgi.framework.ServiceReference sr)
Registers a service reference as a new instance of exported device.
|
void |
unregisteruAALService()
Disconnects and removes all instantiated exported devices of this type.
|
protected void |
unregisteruAALService(org.osgi.framework.ServiceReference sr)
Disconnect a single instance of exported device.
|
serviceChanged
public DimmerLightListener(org.osgi.framework.BundleContext context) throws org.osgi.framework.InvalidSyntaxException
context
- The OSGi contextorg.osgi.framework.InvalidSyntaxException
- If the service to listen defined in the class is not
appropriateprotected void registeruAALService(org.osgi.framework.ServiceReference sr)
ExporterListener
registeruAALService
in class ExporterListener
sr
- The service reference identifying the instance to register.protected void unregisteruAALService(org.osgi.framework.ServiceReference sr)
ExporterListener
unregisteruAALService
in class ExporterListener
sr
- The service reference identifying the instance to disconnect.public void unregisteruAALService()
ExporterListener
unregisteruAALService
in class ExporterListener
Copyright © 2015 universAAL Consortium. All Rights Reserved.