2009-01-09 1.2.0

org.eclipse.soda.dk.connection.managed
Class ConnectionManaged

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

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

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

Since:
1.0
Version:
1.2.0

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.core.managed.CoreManaged
CONFIGURATION_ADMIN_SERVICE, ID_KEY, ID_KEY_FILTER, IMPORTED_SERVICES, METATYPE_SERVICE, OPTIONAL_SERVICES
 
Constructor Summary
ConnectionManaged()
           
 
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  ConnectionService createService(java.util.Dictionary properties)
          Create service with the specified properties parameter and return the ConnectionService 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 getServiceName()
          Return the service name.
 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, getExportedServiceNames, getImportedServiceNames, getImportedServiceNames, getInterestServiceName, getOptionalImportedServiceNames, getOptionalImportedServiceNames, handleAcquiredOptionalImportedService, handleAcquiredOptionalImportedService, handleReleasedOptionalImportedService, 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
 

Constructor Detail

ConnectionManaged

public ConnectionManaged()
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.

createService

public abstract ConnectionService createService(java.util.Dictionary properties)
Create service with the specified properties parameter and return the ConnectionService result.

Parameters:
properties - The properties (Dictionary) parameter.
Returns:
Results of the create service (Object) value.

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.

getServiceName

public java.lang.String getServiceName()
Return the service name.

Returns:
Results of the get service name (String) value.

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.

2009-01-09 1.2.0

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