1.0.0

org.eclipse.soda.dk.testcontroller.bundle
Class TestControllerBundle

java.lang.Object
  extended by BaseBundleActivator
      extended by org.eclipse.soda.dk.testcontroller.bundle.TestControllerBundle

public class TestControllerBundle
extends BaseBundleActivator

The AgentBundle is the base bundle activator for all agent bundle activators.

Version:
1.0.0

Field Summary
static java.lang.String CLASS_NAME
          Defines the class name.
static java.lang.String[] EXPORTED_SERVICE_NAMES
          Defines the service name(s) to be registered by the testAdapter bundle.
static java.lang.String[] IMPORTED_SERVICE_NAMES
          Defines the imported service name(s) to be registered by the testAdapter bundle.
static java.lang.String[] OPTIONAL_SERVICES
          Define the optional services (String[]) constant.
 
Constructor Summary
TestControllerBundle()
          Constructs an instance of this class.
 
Method Summary
 void activate()
          Create service and return the Object result.
 java.util.Hashtable createProperties()
          Create the properties.
 TestController createService()
          Create service with the specified device parameter and return the Object result.
protected  void deactivate()
          Deactivate.
 java.lang.String[] getExportedServiceNames()
          Return the exported service name(s) to be registered by the testAdapter bundle.
 java.lang.String[] getImportedServiceNames()
          Return the imported service name(s) to be registered by the testAdapter bundle.
protected  java.lang.String[] getOptionalImportedServiceNames()
          Gets the optional imported service names (String[]) value.
protected  void handleAcquiredOptionalImportedService(java.lang.String serviceName, java.lang.Object service)
          Handle acquired optional imported service with the specified service name and service parameters.
protected  void handleReleasedOptionalImportedService(java.lang.String serviceName, java.lang.Object service)
          Handle released optional imported service with the specified service name and service parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

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

See Also:
Constant Field Values

EXPORTED_SERVICE_NAMES

public static final java.lang.String[] EXPORTED_SERVICE_NAMES
Defines the service name(s) to be registered by the testAdapter bundle.
org.eclipse.soda.dk.adapter.service.AdapterService


IMPORTED_SERVICE_NAMES

public static final java.lang.String[] IMPORTED_SERVICE_NAMES
Defines the imported service name(s) to be registered by the testAdapter bundle.
org.eclipse.soda.dk.test.adapter.service.testAdapterService
org.eclipse.soda.dk.notification.service.NotificationService


OPTIONAL_SERVICES

public static final java.lang.String[] OPTIONAL_SERVICES
Define the optional services (String[]) constant.

Constructor Detail

TestControllerBundle

public TestControllerBundle()
Constructs an instance of this class.

Method Detail

activate

public void activate()
Create service and return the Object result.


createProperties

public java.util.Hashtable createProperties()
Create the properties.

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

createService

public TestController createService()
Create service with the specified device parameter and return the Object result. The device (DeviceService) parameter.

Returns:
Results of the create service (Object) value. The device (DeviceService) parameter.

deactivate

protected void deactivate()
Deactivate.


getExportedServiceNames

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

Returns:
String[] The device's service names.

getImportedServiceNames

public java.lang.String[] getImportedServiceNames()
Return the imported service name(s) to be registered by the testAdapter bundle.

Returns:
String[] The imported service names.

getOptionalImportedServiceNames

protected java.lang.String[] getOptionalImportedServiceNames()
Gets the optional imported service names (String[]) value.

Returns:
The optional imported service names (String[]) value.
See Also:
#getOptionalImportedServiceNames(String,Dictionary,Dictionary,IBundleActivationManager)

handleAcquiredOptionalImportedService

protected void handleAcquiredOptionalImportedService(java.lang.String serviceName,
                                                     java.lang.Object service)
Handle acquired optional imported service with the specified service name and service parameters. The service name (String) parameter. The service (Object) parameter.

Parameters:
serviceName - The service name (String) parameter.
service - The service (Object) parameter.

handleReleasedOptionalImportedService

protected void handleReleasedOptionalImportedService(java.lang.String serviceName,
                                                     java.lang.Object service)
Handle released optional imported service with the specified service name and service parameters. The service name (String) parameter. The service (Object) parameter.

Parameters:
serviceName - The service name (String) parameter.
service - The service (Object) parameter.

1.0.0

Copyright (c) 2007 IBM