|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.lddi.knx.devicemanager.KnxDeviceManager
public class KnxDeviceManager
This bundle tracks on IKnxNetwork service. When this service appears, this bundle is initialized.
Constructor Summary | |
---|---|
KnxDeviceManager(org.osgi.framework.BundleContext context,
org.osgi.service.log.LogService log)
|
Method Summary | |
---|---|
Object |
addingService(org.osgi.framework.ServiceReference reference)
IKnxNetwork service appeared, initialization of this bundle; ManagedService registration in OSGi. |
void |
modifiedService(org.osgi.framework.ServiceReference reference,
Object service)
IKnxNetwork service has been modified: removing my managed service and adding again. |
void |
removedService(org.osgi.framework.ServiceReference reference,
Object service)
IKnxNetwork service has been removed: removing my managed service, clear storage objects -> set this bundle to "idle" mode. |
void |
stop()
remove all groupDevice references in network driver |
void |
updated(Dictionary properties)
Get updated from ConfigurationAdmin: get configuration file from ETS4, extract groupAddress information, create virtual KNX devices, and register them as device services in OSGi. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KnxDeviceManager(org.osgi.framework.BundleContext context, org.osgi.service.log.LogService log)
Method Detail |
---|
public Object addingService(org.osgi.framework.ServiceReference reference)
addingService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
public void modifiedService(org.osgi.framework.ServiceReference reference, Object service)
modifiedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
public void removedService(org.osgi.framework.ServiceReference reference, Object service)
removedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
public void updated(Dictionary properties) throws org.osgi.service.cm.ConfigurationException
updated
in interface org.osgi.service.cm.ManagedService
org.osgi.service.cm.ConfigurationException
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |