2008-09-10 1.1.0

org.eclipse.soda.dk.profile.test.bundle
Class ProfileTestBundle

java.lang.Object
  extended by org.eclipse.soda.sat.core.framework.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.bundle.DeviceInterestBundle
                  extended by org.eclipse.soda.dk.profile.test.bundle.ProfileTestBundle
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public abstract class ProfileTestBundle
extends DeviceInterestBundle
implements org.osgi.framework.BundleActivator

Profile Test Bundle class.

Version:
1.1.0

Field Summary
static java.lang.String CLASS_NAME
          Defines the class name.
protected  ProfileTestService testCase
          Save the tester object.
 
Fields inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
DEVICE_CLASS, DEVICE_REVISION
 
Fields inherited from class org.eclipse.soda.sat.core.framework.BaseBundleActivator
NO_SERVICES
 
Constructor Summary
ProfileTestBundle()
           
 
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  ProfileTestService createService(ProfileService 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 ProfileTest bundle.
abstract  java.lang.String getInterestServiceName()
          Gets the device service name to be tested.
 void setInterest(java.lang.Object interest)
           
 
Methods inherited from class org.eclipse.soda.dk.device.bundle.DeviceInterestBundle
createService
 
Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceInterestBundle
destroyExportedServices, getInterest, updateProperties
 
Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
getService, log, log, setService
 
Methods inherited from class org.eclipse.soda.sat.core.framework.BaseBundleActivator
acquireImportedService, acquireImportedServices, acquireOptionalImportedServices, addExportedProxyService, addExportedProxyServices, addExportedService, addExportedServices, addImportedServiceFilter, addOptionalImportedServiceFilter, basicGetImportedServiceNames, basicGetOptionalImportedServiceNames, collectImportedServiceNames, collectOptionalImportedServiceNames, getAsyncStartPriority, getBundle, getBundleActivationManager, getBundleContext, getBundleSymbolicName, getDataDirectory, getDataFile, getExportedService, getExportedServiceNamesFromManifest, getExportedServiceProperties, getExportedServiceProperties, getExportedServices, getExportedServices, getFilePropertiesInputStream, getFilePropertiesInputStream, getImportedService, getImportedServiceFilter, getImportedServiceNames, getImportedServiceNamesFromManifest, getImportedServiceProperty, getImportedServicePropertyKeys, getImportedServices, getOptionalImportedService, getOptionalImportedServiceFilter, getOptionalImportedServiceNames, getOptionalImportedServiceProperty, getOptionalImportedServicePropertyKeys, getOptionalImportedServices, getProperties, getPropertiesInputStream, getProperty, getResourcePropertiesInputStream, getResourcePropertiesInputStream, handleAcquiredOptionalImportedService, handleException, handleFailedToFindProperties, handleReleasedOptionalImportedService, isStartAsync, isTransient, isUninstallable, releaseImportedService, releaseImportedServices, releaseOptionalImportedServices, removeExportedService, removeExportedService, removeExportedServices, removeImportedServiceFilter, removeOptionalImportedServiceFilter, restartFramework, setExportedServiceProperties, setExportedServiceProperties, shutdownFramework, start, start, stop, stop
 
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 ProfileTestService testCase
Save the tester object.

Constructor Detail

ProfileTestBundle

public ProfileTestBundle()
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 DeviceInterestBundle
Returns:
Results of the create service (Object) value.
See Also:
createService(ProfileService)

createService

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

deactivate

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

Overrides:
deactivate in class org.eclipse.soda.sat.core.framework.BaseBundleActivator

getExportedServiceNames

public java.lang.String[] getExportedServiceNames()
Return the service name(s) to be registered by the ProfileTest 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)
Overrides:
setInterest in class ServiceInterestBundle
Parameters:
interest - The interest (Object) parameter.
See Also:
ServiceInterestBundle.getInterest()

2008-09-10 1.1.0

Copyright (c) 1999, 2008 IBM and others. See license in Legal section. OSGi Framework Version 3.4.0.v20080605-1900