2008-02-07 1.1.0

org.eclipse.soda.dk.random.access.file.connection.factory
Class RandomAccessFileConnectionFactory

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
                  extended by org.eclipse.soda.dk.random.access.file.connection.factory.RandomAccessFileConnectionFactory
All Implemented Interfaces:
org.eclipse.soda.sat.core.framework.interfaces.IManagedServiceFactoryAdvisor, org.osgi.framework.BundleActivator, org.osgi.service.cm.ManagedServiceFactory

public class RandomAccessFileConnectionFactory
extends ConnectionFactory
implements org.osgi.framework.BundleActivator

File Connection.

The device bundle activator class creates and registers the RandomAccessFileConnection device.

The list of exported services:

Version:
1.1.0
See Also:
RandomAccessFileConnectionService, DeviceService

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 RandomAccessFileConnection bundle.
 
Fields inherited from class org.eclipse.soda.dk.core.factory.CoreFactory
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
RandomAccessFileConnectionFactory()
           
 
Method Summary
 ConnectionService createService(java.util.Dictionary dictionary)
          Creates the device using the specified bundleContext.
 java.lang.String[] getExportedServiceNames(java.lang.String pid, java.util.Dictionary oldProperties, java.util.Dictionary properties, org.eclipse.soda.sat.core.framework.interfaces.IBundleActivationManager manager)
          Return the exported service name(s) to be registered by the RandomAccessFileConnection bundle.
 
Methods inherited from class org.eclipse.soda.dk.connection.factory.ConnectionFactory
create, destroy, getServiceName, update
 
Methods inherited from class org.eclipse.soda.dk.core.factory.CoreFactory
createAdvisor, createImportedServiceFilters, createProperties, getIds, getImportedServiceNames, getImportedServiceNames, getInterestServiceName, getOptionalImportedServiceNames, getOptionalImportedServiceNames, handleAcquiredOptionalImportedService, handleAcquiredOptionalImportedService, handleReleasedOptionalImportedService, handleReleasedOptionalImportedService, setIds, updateProperties, validateConfiguration
 
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, 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.framework.BundleActivator
start, stop
 
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
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
Defines the class name. Generated field and should not be changed.

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 RandomAccessFileConnection bundle. Defines the service name(s) to be registered by the RandomAccessFileConnection bundle.
org.eclipse.soda.dk.connection.service.ConnectionService
org. eclipse. soda. dk. connection. service. ConnectionService
org. eclipse. soda. dk. random. access. file. connection. service. RandomAccessFileConnectionService
. Generated field and should not be changed.

Constructor Detail

RandomAccessFileConnectionFactory

public RandomAccessFileConnectionFactory()
Method Detail

createService

public ConnectionService createService(java.util.Dictionary dictionary)
Creates the device using the specified bundleContext.

Specified by:
createService in class ConnectionFactory
Parameters:
dictionary - The dictionary (Dictionary) parameter.
Returns:
Object The device service created by this bundle.
See Also:
RandomAccessFileConnection

getExportedServiceNames

public java.lang.String[] getExportedServiceNames(java.lang.String pid,
                                                  java.util.Dictionary oldProperties,
                                                  java.util.Dictionary properties,
                                                  org.eclipse.soda.sat.core.framework.interfaces.IBundleActivationManager manager)
Return the exported service name(s) to be registered by the RandomAccessFileConnection bundle.

Specified by:
getExportedServiceNames in class org.eclipse.soda.dk.core.factory.CoreFactory
Parameters:
pid - The pid (String) parameter.
oldProperties - The old properties (Dictionary) parameter.
properties - The properties (Dictionary) parameter.
manager - The manager (IBundleActivationManager) parameter.
Returns:
String[] The connection's service names.

2008-02-07 1.1.0

Copyright (c) 1999, 2008 IBM and others. See license in Legal section. OSGi Framework Version 3.3.1.R33x_v20070828