1.0.0

org.eclipse.soda.dk.device.test.managed
Class DeviceTestManaged

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.test.managed.DeviceTestManaged
All Implemented Interfaces:
org.osgi.service.cm.ManagedService

public abstract class DeviceTestManaged
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
DeviceTestManaged()
           
 
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  DeviceTestService createService(DeviceService transport)
          Create service with the specified transport parameter and return the Object result.
protected  void deactivate()
          Deactivate.
 DeviceService getDevice()
          Get the DeviceService to be used by the deviceTest.
 DeviceTestService getDeviceTest()
          Return the deviceTest.
 java.lang.String[] getExportedServiceNames()
          Gets the exported service names (String[]) value.
 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

DeviceTestManaged

public DeviceTestManaged()
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(DeviceService)

createService

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

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

deactivate

protected void deactivate()
Deactivate.


getDevice

public DeviceService getDevice()
Get the DeviceService to be used by the deviceTest.

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

getDeviceTest

public DeviceTestService getDeviceTest()
Return the deviceTest.

Returns:
Results of the get deviceTest (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.

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