2008-09-10 1.1.0

org.eclipse.soda.dk.connection.factory
Class ConnectionFactory

java.lang.Object
  extended by org.eclipse.soda.sat.core.framework.BaseBundleActivator
      extended by org.eclipse.soda.sat.core.framework.ManagedServiceFactoryBundleActivator
          extended by org.eclipse.soda.dk.core.factory.CoreFactory
              extended by org.eclipse.soda.dk.connection.factory.ConnectionFactory
All Implemented Interfaces:
org.eclipse.soda.sat.core.framework.interfaces.IManagedServiceFactoryAdvisor, org.osgi.framework.BundleActivator, org.osgi.service.cm.ManagedServiceFactory
Direct Known Subclasses:
FileConnectionFactory, RandomAccessFileConnectionFactory, SerialConnectionFactory, TcpipConnectionFactory

public abstract class ConnectionFactory
extends org.eclipse.soda.dk.core.factory.CoreFactory
implements org.osgi.service.cm.ManagedServiceFactory, org.eclipse.soda.sat.core.framework.interfaces.IManagedServiceFactoryAdvisor

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

Version:
1.1.0

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.core.factory.CoreFactory
CHANGES_MAJOR, CHANGES_MINOR, CHANGES_NONE, CONFIGURATION_ADMIN_SERVICE, ID_KEY, ID_KEY_FILTER, ids, IMPORTED_SERVICES, METATYPE_SERVICE, OPTIONAL_SERVICES
 
Fields inherited from class org.eclipse.soda.sat.core.framework.ManagedServiceFactoryBundleActivator
CONFIGURATION_ADMIN_SERVICE_NAME, MANAGED_SERVICE_FACTORY_SERVICE_NAME, NUMBER_OF_CONFIGURATIONS_HINT
 
Fields inherited from class org.eclipse.soda.sat.core.framework.BaseBundleActivator
NO_SERVICES
 
Constructor Summary
ConnectionFactory()
           
 
Method Summary
 java.lang.Object create(java.lang.String pid, java.util.Dictionary properties, org.eclipse.soda.sat.core.framework.interfaces.IBundleActivationManager manager)
          Create with the specified pid, properties and manager parameters and return the Object result.
abstract  ConnectionService createService(java.util.Dictionary properties)
           
 void destroy(java.lang.String pid, java.lang.Object object, java.util.Dictionary properties, org.eclipse.soda.sat.core.framework.interfaces.IBundleActivationManager manager)
           
 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, org.eclipse.soda.sat.core.framework.interfaces.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.factory.CoreFactory
compare, createAdvisor, createImportedServiceFilters, createProperties, getExportedServiceNames, getIds, getImportedServiceNames, getImportedServiceNames, getInterestServiceName, getMinorProperties, getOptionalImportedServiceNames, getOptionalImportedServiceNames, handleAcquiredOptionalImportedService, handleAcquiredOptionalImportedService, handleReleasedOptionalImportedService, handleReleasedOptionalImportedService, setIds, updateProperties, updateProperties, validateConfiguration, validateConfigurationIds
 
Methods inherited from class org.eclipse.soda.sat.core.framework.ManagedServiceFactoryBundleActivator
activate, collectImportedServiceNames, createDefaultPid, createPid, deactivate, deleted, getName, getNumberOfConfigurationsHint, getPid, isProxyService, updated
 
Methods inherited from class org.eclipse.soda.sat.core.framework.BaseBundleActivator
acquireImportedService, acquireImportedServices, acquireOptionalImportedServices, addExportedProxyService, addExportedProxyServices, addExportedService, addExportedServices, addImportedServiceFilter, addOptionalImportedServiceFilter, basicGetImportedServiceNames, basicGetOptionalImportedServiceNames, collectOptionalImportedServiceNames, getAsyncStartPriority, getBundle, getBundleActivationManager, getBundleContext, getBundleSymbolicName, getDataDirectory, getDataFile, getExportedService, getExportedServiceNamesFromManifest, getExportedServiceProperties, getExportedServiceProperties, getExportedServices, getExportedServices, getFilePropertiesInputStream, getFilePropertiesInputStream, getImportedService, getImportedServiceFilter, getImportedServiceNamesFromManifest, getImportedServiceProperty, getImportedServicePropertyKeys, getImportedServices, getOptionalImportedService, getOptionalImportedServiceFilter, getOptionalImportedServiceProperty, getOptionalImportedServicePropertyKeys, getOptionalImportedServices, getProperties, getPropertiesInputStream, getProperty, getResourcePropertiesInputStream, getResourcePropertiesInputStream, handleException, handleFailedToFindProperties, 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.service.cm.ManagedServiceFactory
deleted, getName, updated
 
Methods inherited from interface org.eclipse.soda.sat.core.framework.interfaces.IManagedServiceFactoryAdvisor
createImportedServiceFilters, getImportedServiceNames, getOptionalImportedServiceNames, handleAcquiredOptionalImportedService, handleReleasedOptionalImportedService, validateConfiguration
 

Constructor Detail

ConnectionFactory

public ConnectionFactory()
Method Detail

create

public java.lang.Object create(java.lang.String pid,
                               java.util.Dictionary properties,
                               org.eclipse.soda.sat.core.framework.interfaces.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.

Specified by:
create in interface org.eclipse.soda.sat.core.framework.interfaces.IManagedServiceFactoryAdvisor
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)
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,
                    org.eclipse.soda.sat.core.framework.interfaces.IBundleActivationManager manager)
Specified by:
destroy in interface org.eclipse.soda.sat.core.framework.interfaces.IManagedServiceFactoryAdvisor
Overrides:
destroy in class org.eclipse.soda.dk.core.factory.CoreFactory
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,
                               org.eclipse.soda.sat.core.framework.interfaces.IBundleActivationManager manager)
Update with the specified pid, object, old properties, properties and manager parameters and return the Object result. The pid (String) parameter. The object(Object) parameter. The old properties (Dictionary) parameter. The properties (Dictionary) parameter. The manager (IBundleActivationManager) parameter.

Specified by:
update in interface org.eclipse.soda.sat.core.framework.interfaces.IManagedServiceFactoryAdvisor
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.

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