1.0.0

org.eclipse.soda.dk.device.managed
Class DeviceManaged

java.lang.Object
  extended by BaseBundleActivator
      extended by org.eclipse.soda.dk.connection.bundle.ServiceBundle
          extended by org.eclipse.soda.dk.connection.bundle.ServiceInterestBundle
              extended by org.eclipse.soda.dk.device.managed.DeviceManaged
All Implemented Interfaces:
org.osgi.service.cm.ManagedService

public abstract class DeviceManaged
extends ServiceInterestBundle
implements org.osgi.service.cm.ManagedService

The TransportBundle is the standard Bundle Activator for all other transport bundle activators to subclass.

Version:
1.0.0

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
DEVICE_CLASS, DEVICE_REVISION
 
Constructor Summary
DeviceManaged()
           
 
Method Summary
protected  void activate()
          Create exported services.
 java.util.Hashtable createManagedProperties()
          Create managed properties and return the Hashtable result.
 java.lang.Object createService()
          Create service and return the Object result.
abstract  DeviceService createService(TransportService transport)
          Create service with the specified transport parameter and return the Object result.
protected  void deactivate()
          Deactivate.
 DeviceService getDevice()
          Return the device.
 java.lang.String[] getExportedServiceNames()
          Gets the exported service names (String[]) value.
 TransportService getTransport()
          Get the TransportService to be used by the device.
 void setInterest(java.lang.Object interest)
          Sets the interest value.
 void updated(java.util.Dictionary properties)
          Updated with the specified properties parameter.
 void updateProperties(java.util.Dictionary table, java.util.Dictionary from)
          Update properties with the specified table and from parameters.
 
Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceInterestBundle
destroyExportedServices, getInterest, getInterestServiceName
 
Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
createProperties, getService, log, log, setService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceManaged

public DeviceManaged()
Method Detail

activate

protected void activate()
Create exported services.

Overrides:
activate in class ServiceInterestBundle

createManagedProperties

public java.util.Hashtable createManagedProperties()
Create managed properties and return the Hashtable result.

Returns:
Results of the create managed properties (Hashtable) value.

createService

public java.lang.Object createService()
Create service and return the Object result.

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

createService

public abstract DeviceService createService(TransportService transport)
Create service with the specified transport parameter and return the Object result.

Parameters:
transport - The transport (TransportService) parameter.
Returns:
Results of the create service (Object) value.
See Also:
createService()

deactivate

protected void deactivate()
Deactivate.


getDevice

public DeviceService getDevice()
Return the device.

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

getExportedServiceNames

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

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

getTransport

public TransportService getTransport()
Get the TransportService to be used by the device.

Returns:
Results of the get transport (TransportService) value.

setInterest

public void setInterest(java.lang.Object interest)
Description copied from class: ServiceInterestBundle
Sets the interest value. The interest (Object) parameter.

Overrides:
setInterest in class ServiceInterestBundle
Parameters:
interest - The interest (Object) parameter.
See Also:
ServiceInterestBundle.setInterest(Object)

updateProperties

public void updateProperties(java.util.Dictionary table,
                             java.util.Dictionary from)
Update properties with the specified table and from parameters.

Parameters:
table - The table (Dictionary) parameter.
from - The from (Dictionary) parameter.
See Also:
createManagedProperties()

updated

public void updated(java.util.Dictionary properties)
             throws org.osgi.service.cm.ConfigurationException
Updated with the specified properties parameter.

Specified by:
updated in interface org.osgi.service.cm.ManagedService
Parameters:
properties - The properties (Dictionary) parameter.
Throws:
org.osgi.service.cm.ConfigurationException - Configuration Exception.

1.0.0

Copyright (c) 1999, 2007 IBM