1.0.0

org.eclipse.soda.dk.device.registry.bundle
Class DeviceRegistryBundle

java.lang.Object
  extended by BaseBundleActivator
      extended by org.eclipse.soda.dk.connection.bundle.ServiceBundle
          extended by org.eclipse.soda.dk.device.registry.bundle.DeviceRegistryBundle
All Implemented Interfaces:
java.util.EventListener, org.osgi.framework.ServiceListener

public class DeviceRegistryBundle
extends ServiceBundle
implements org.osgi.framework.ServiceListener

The DeviceRegistryBundle is the bundle activator for the Device Kit bundle. It creates and registers the DeviceRegistryService.

Version:
1.0.0

Field Summary
static java.lang.String[] SERVICE_NAMES
          Define the service names (String[]) constant.
 
Fields inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
DEVICE_CLASS, DEVICE_REVISION
 
Constructor Summary
DeviceRegistryBundle()
           
 
Method Summary
protected  void activate()
          Create exported services.
 java.lang.Object createService()
          Create and return an object that implements the DeviceRegistryService interface.
protected  void deactivate()
          Deactivate.
 DeviceService getDevice()
          Return the device service object.
 java.lang.String[] getExportedServiceNames()
          Gets the service names (String[]) value.
 void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
          Look for changes in DeviceService objects.
 
Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
createProperties, destroyExportedServices, getService, log, log, setService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAMES

public static final java.lang.String[] SERVICE_NAMES
Define the service names (String[]) constant.

Constructor Detail

DeviceRegistryBundle

public DeviceRegistryBundle()
Method Detail

activate

protected void activate()
Description copied from class: ServiceBundle
Create exported services.

Overrides:
activate in class ServiceBundle
See Also:
org.eclipse.soda.sat.core.framework.BaseBundleActivator#activate()

createService

public java.lang.Object createService()
Create and return an object that implements the DeviceRegistryService interface.

Overrides:
createService in class ServiceBundle
Returns:
Results of the create service (Object) value.
See Also:
ServiceBundle.createService(), DeviceRegistry

deactivate

protected void deactivate()
Deactivate.


getDevice

public DeviceService getDevice()
Return the device service object.

Returns:
Results of the get device (DeviceService) value.

getExportedServiceNames

public java.lang.String[] getExportedServiceNames()
Gets the service names (String[]) value.

Specified by:
getExportedServiceNames in class ServiceBundle
Returns:
The service names (String[]) value.

serviceChanged

public void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
Look for changes in DeviceService objects.

Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener
Parameters:
serviceEvent - The service event (ServiceEvent) parameter.
See Also:
The service event (ServiceEvent) parameter.

1.0.0

Copyright (c) 1999, 2007 IBM