1.0.0

org.eclipse.soda.dk.adapter.test.bundle
Class AdapterTestBundle

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.bundle.AdapterTestBundle
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public abstract class AdapterTestBundle
extends ServiceInterestBundle
implements org.osgi.framework.BundleActivator

Device Test class.

Version:
1.0.0
See Also:
org.eclipse.soda.dk.connection.bundle, org.eclipse.soda.dk.device.bundle, org.eclipse.soda.dk.device.service, org.eclipse.soda.dk.device.test, org.eclipse.soda.dk.transport.bundle, org.osgi.framework, org.eclipse.soda.dk.connection.bundle, org.eclipse.soda.dk.device.bundle, org.eclipse.soda.dk.device.service, org.eclipse.soda.dk.device.test, org.eclipse.soda.dk.transport.bundle, org.osgi.framework

Field Summary
static java.lang.String CLASS_NAME
          Defines the class name.
protected  AdapterTestService testCase
          Save the tester object.
 
Fields inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
DEVICE_CLASS, DEVICE_REVISION
 
Constructor Summary
AdapterTestBundle()
           
 
Method Summary
protected  void activate()
          Activate.
 java.util.Hashtable createProperties()
          Gets the properties to be registered with the service(s).
 java.lang.Object createService()
          Create service and return the Object result.
abstract  AdapterTestService createService(AdapterService device)
          Create the Tester for the specified device.
protected  void deactivate()
          Stop the test case and the bundle.
 java.lang.String[] getExportedServiceNames()
          Return the service name(s) to be registered by the AdapterTest bundle.
abstract  java.lang.String getInterestServiceName()
          Gets the device service name to be tested.
 void setInterest(java.lang.Object interest)
          Sets the interest object.
 
Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceInterestBundle
destroyExportedServices, getInterest
 
Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
getService, log, log, setService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.osgi.framework.BundleActivator
start, stop
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
Defines the class name.


testCase

protected AdapterTestService testCase
Save the tester object.

Constructor Detail

AdapterTestBundle

public AdapterTestBundle()
Method Detail

activate

protected void activate()
Activate.

Overrides:
activate in class ServiceInterestBundle

createProperties

public java.util.Hashtable createProperties()
Gets the properties to be registered with the service(s).

Overrides:
createProperties in class ServiceBundle
Returns:
Hashtable of properties.

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 device)
Create the Tester for the specified device. The device (AdapterService) parameter.

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

deactivate

protected void deactivate()
Stop the test case and the bundle.


getExportedServiceNames

public java.lang.String[] getExportedServiceNames()
Return the service name(s) to be registered by the AdapterTest bundle.

Specified by:
getExportedServiceNames in class ServiceBundle
Returns:
Results of the get service names (String[]) value.

getInterestServiceName

public abstract java.lang.String getInterestServiceName()
Gets the device service name to be tested.

Overrides:
getInterestServiceName in class ServiceInterestBundle
Returns:
Results of the get interest service name (String) value.

setInterest

public void setInterest(java.lang.Object interest)
Sets the interest object. The interest (Object) parameter.

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

1.0.0

Copyright (c) 1999, 2007 IBM