2009-01-09 1.2.0

org.eclipse.soda.dk.transport.managed
Class TransportManaged

java.lang.Object
  extended by ManagedServiceBundleActivator
      extended by org.eclipse.soda.dk.core.managed.CoreManaged
          extended by org.eclipse.soda.dk.transport.managed.TransportManaged
All Implemented Interfaces:
org.osgi.service.cm.ManagedService

public abstract class TransportManaged
extends CoreManaged
implements org.osgi.service.cm.ManagedService

The TransportBundle 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[] OPTIONAL_SERVICES
          Define the optional service (String[]) constant.
 
Fields inherited from class org.eclipse.soda.dk.core.managed.CoreManaged
CONFIGURATION_ADMIN_SERVICE, ID_KEY, ID_KEY_FILTER, IMPORTED_SERVICES, METATYPE_SERVICE
 
Constructor Summary
TransportManaged()
           
 
Method Summary
 java.lang.Object create(java.lang.String pid, java.util.Dictionary properties, IBundleActivationManager manager)
          Create with the specified pid, properties and manager parameters and return the Object result.
abstract  TransportService createService(ConnectionService connection)
          Create service with the specified connection parameter and return the TransportService result.
 void destroy(java.lang.String pid, java.lang.Object object, java.util.Dictionary properties, IBundleActivationManager manager)
          Destroy with the specified PID, object, properties and manager parameters.
 java.lang.String[] getExportedServiceNames(java.lang.String pid, java.util.Dictionary oldProperties, java.util.Dictionary properties, IBundleActivationManager manager)
          Gets the service names (String[]) value.
 java.lang.String getInterestServiceName()
          Gets the interest service name (String) value.
 java.lang.String[] getOptionalImportedServiceNames(java.lang.String pid, java.util.Dictionary arg1, java.util.Dictionary arg2, IBundleActivationManager arg3)
          Get optional imported service names with the specified PID, arg1, arg2 and arg3 parameters and return the String[] result.
 void handleAcquiredOptionalImportedService(java.lang.String pid, java.lang.Object object, java.lang.String importedServiceName, java.lang.Object importedService, IBundleActivationManager manager)
          Handle acquired optional imported service with the specified PID, object, imported service name, imported service and manager parameters.
 void handleReleasedOptionalImportedService(java.lang.String pid, java.lang.Object object, java.lang.String importedServiceName, java.lang.Object importedService, IBundleActivationManager manager)
          Handle released optional imported service with the specified PID, object, imported service name, imported service and manager parameters.
 boolean isManagedConnection(java.util.Dictionary properties)
          Is managed connection with the specified properties parameter and return the boolean result.
 java.lang.Object update(java.lang.String pid, java.lang.Object object, java.util.Dictionary oldProperties, java.util.Dictionary properties, IBundleActivationManager manager)
          Update with the specified PID, object, old properties, properties and manager parameters and return the Object result.
 
Methods inherited from class org.eclipse.soda.dk.core.managed.CoreManaged
createAdvisor, createImportedServiceFilters, createProperties, getImportedServiceNames, getImportedServiceNames, getOptionalImportedServiceNames, handleAcquiredOptionalImportedService, handleReleasedOptionalImportedService, updateProperties, updateProperties, validateConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.osgi.service.cm.ManagedService
updated
 

Field Detail

OPTIONAL_SERVICES

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

Constructor Detail

TransportManaged

public TransportManaged()
Method Detail

create

public java.lang.Object create(java.lang.String pid,
                               java.util.Dictionary properties,
                               IBundleActivationManager manager)
Create with the specified pid, properties and manager parameters and return the Object result. The pid (String) parameter. The properties (Dictionary) parameter. The manager (IBundleActivationManager) parameter.

Parameters:
pid - The PID (String) parameter.
properties - The properties (Dictionary) parameter.
manager - The manager (IBundleActivationManager) parameter.
Returns:
Results of the create (Object) value. The pid (String) parameter. The properties (Dictionary) parameter. The manager (IBundleActivationManager) parameter.

createService

public abstract TransportService createService(ConnectionService connection)
Create service with the specified connection parameter and return the TransportService result.

Parameters:
connection - The connection (ConnectionService) parameter.
Returns:
Results of the create service (Object) value. The connection (ConnectionService) parameter. The connection (ConnectionService) parameter.
See Also:
handleAcquiredOptionalImportedService(String,Object,String,Object,IBundleActivationManager), handleReleasedOptionalImportedService(String,Object,String,Object,IBundleActivationManager)

destroy

public void destroy(java.lang.String pid,
                    java.lang.Object object,
                    java.util.Dictionary properties,
                    IBundleActivationManager manager)
Destroy with the specified PID, object, properties and manager parameters.

Parameters:
pid - The PID (String) parameter.
object - The object (Object) parameter.
properties - The properties (Dictionary) parameter.
manager - The manager (IBundleActivationManager) parameter.

getExportedServiceNames

public java.lang.String[] getExportedServiceNames(java.lang.String pid,
                                                  java.util.Dictionary oldProperties,
                                                  java.util.Dictionary properties,
                                                  IBundleActivationManager manager)
Gets the service names (String[]) value.

Specified by:
getExportedServiceNames in class CoreManaged
Parameters:
pid - The PID (String) parameter.
oldProperties - The old properties (Dictionary) parameter.
properties - The properties (Dictionary) parameter.
manager - The manager (IBundleActivationManager) parameter.
Returns:
The service names (String[]) value. The pid (String) parameter. The old properties (Dictionary) parameter. The properties (Dictionary) parameter. The manager (IBundleActivationManager) parameter.

getInterestServiceName

public java.lang.String getInterestServiceName()
Gets the interest service name (String) value.

Overrides:
getInterestServiceName in class CoreManaged
Returns:
The interest service name (String) value.

getOptionalImportedServiceNames

public java.lang.String[] getOptionalImportedServiceNames(java.lang.String pid,
                                                          java.util.Dictionary arg1,
                                                          java.util.Dictionary arg2,
                                                          IBundleActivationManager arg3)
Get optional imported service names with the specified PID, arg1, arg2 and arg3 parameters and return the String[] result.

Overrides:
getOptionalImportedServiceNames in class CoreManaged
Parameters:
pid - The PID (String) parameter.
arg1 - The arg1 (Dictionary) parameter.
arg2 - The arg2 (Dictionary) parameter.
arg3 - The arg3 (IBundleActivationManager) parameter.
Returns:
Results of the get optional imported service names (String[]) value. The arg0 (String) parameter. The arg1 (Dictionary) parameter. The arg2 (Dictionary) parameter. The arg3 (IBundleActivationManager) parameter.
See Also:
CoreManaged.getOptionalImportedServiceNames()

handleAcquiredOptionalImportedService

public void handleAcquiredOptionalImportedService(java.lang.String pid,
                                                  java.lang.Object object,
                                                  java.lang.String importedServiceName,
                                                  java.lang.Object importedService,
                                                  IBundleActivationManager manager)
Handle acquired optional imported service with the specified PID, object, imported service name, imported service and manager parameters.

Overrides:
handleAcquiredOptionalImportedService in class CoreManaged
Parameters:
pid - The PID (String) parameter.
object - The object (Object) parameter.
importedServiceName - The imported service name (String) parameter.
importedService - The imported service (Object) parameter.
manager - The manager (IBundleActivationManager) parameter.
See Also:
CoreManaged.handleAcquiredOptionalImportedService(String,String,Object)

handleReleasedOptionalImportedService

public void handleReleasedOptionalImportedService(java.lang.String pid,
                                                  java.lang.Object object,
                                                  java.lang.String importedServiceName,
                                                  java.lang.Object importedService,
                                                  IBundleActivationManager manager)
Handle released optional imported service with the specified PID, object, imported service name, imported service and manager parameters.

Overrides:
handleReleasedOptionalImportedService in class CoreManaged
Parameters:
pid - The PID (String) parameter.
object - The object (Object) parameter.
importedServiceName - The imported service name (String) parameter.
importedService - The imported service (Object) parameter.
manager - The manager (IBundleActivationManager) parameter.
See Also:
CoreManaged.handleReleasedOptionalImportedService(String,String,Object)

isManagedConnection

public boolean isManagedConnection(java.util.Dictionary properties)
Is managed connection with the specified properties parameter and return the boolean result.

Parameters:
properties - The properties (Dictionary) parameter.
Returns:
Results of the is Managed connection (boolean) value. The properties (Dictionary) parameter.

update

public java.lang.Object update(java.lang.String pid,
                               java.lang.Object object,
                               java.util.Dictionary oldProperties,
                               java.util.Dictionary properties,
                               IBundleActivationManager manager)
Update with the specified PID, object, old properties, properties and manager parameters and return the Object result.

Parameters:
pid - The PID (String) parameter.
object - The object (Object) parameter.
oldProperties - The old properties (Dictionary) parameter.
properties - The properties (Dictionary) parameter.
manager - The manager (IBundleActivationManager) parameter.
Returns:
Results of the update (Object) value. The pid (String) parameter. The object (Object) parameter. The old properties (Dictionary) parameter. The properties (Dictionary) parameter. The manager (IBundleActivationManager) parameter.

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.