1.0.0

org.eclipse.soda.dk.adapter.test.managed
Class AdapterTestManaged

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

public abstract class AdapterTestManaged
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
AdapterTestManaged()
           
 
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  AdapterTestService createService(AdapterService transport)
          Create service with the specified transport parameter and return the Object result.
protected  void deactivate()
          Deactivate.
 AdapterService getAdapter()
          Get the AdapterService to be used by the adapterTest.
 AdapterTestService getAdapterTest()
          Return the adapterTest.
 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

AdapterTestManaged

public AdapterTestManaged()
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(AdapterService)

createService

public abstract AdapterTestService createService(AdapterService transport)
Create service with the specified transport parameter and return the Object result. The transport (AdapterService) parameter.

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

deactivate

protected void deactivate()
Deactivate.


getAdapter

public AdapterService getAdapter()
Get the AdapterService to be used by the adapterTest.

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

getAdapterTest

public AdapterTestService getAdapterTest()
Return the adapterTest.

Returns:
Results of the get adapterTest (AdapterService) 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:
The interest (Object) parameter.

updateProperties

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

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. The properties (Dictionary) parameter. Configuration Exception.

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