1.0.0

org.eclipse.soda.dk.testmanager.managed
Class TestManagerManaged

java.lang.Object
  extended by BaseBundleActivator
      extended by org.eclipse.soda.dk.testmanager.managed.TestManagerManaged

public class TestManagerManaged
extends BaseBundleActivator

The DeviceBundle is the standard Bundle Activator for all other transport bundle activators to subclass.

Since:
1.0
Version:
1.2.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
TestManagerManaged()
          Constructs an instance of this class.
 
Method Summary
protected  void activate()
          Create exported services.
 java.util.Hashtable createManagedProperties()
          Create managed properties and return the Hashtable result.
 java.util.Hashtable createProperties()
          Create the properties.
 TestManager createService()
          Create the service.
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.
protected  void start()
          Start.
protected  void stop()
          Stop.
 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 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

TestManagerManaged

public TestManagerManaged()
Constructs an instance of this class.

Method Detail

activate

protected void activate()
Create exported services.


createManagedProperties

public java.util.Hashtable createManagedProperties()
Create managed properties and return the Hashtable result.

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

createProperties

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

Returns:
Results of the create properties (Hashtable) value.
See Also:
createManagedProperties(), updateProperties(Dictionary,Dictionary)

createService

public TestManager createService()
Create the service.

Returns:
Results of the create service (Object) value.
See Also:
handleAcquiredOptionalImportedService(String,Object), handleReleasedOptionalImportedService(String,Object)

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.
See Also:
getOptionalImportedServiceNames()

getOptionalImportedServiceNames

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

Returns:
The optional imported service names (String[]) value.

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.

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.

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

start

protected void start()
              throws java.lang.Exception
Start.

Throws:
java.lang.Exception - Exception.

stop

protected void stop()
             throws java.lang.Exception
Stop.

Throws:
java.lang.Exception - Exception.

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(), createProperties()

updated

public void updated(java.util.Dictionary properties)
             throws ConfigurationException
Updated with the specified properties parameter. The properties (Dictionary) parameter. Configuration Exception.

Parameters:
properties - The properties (Dictionary) parameter.
Throws:
ConfigurationException - Configuration Exception.

1.0.0

Copyright (c) 2007, 2009 IBM