2008-09-10 1.1.0

org.eclipse.soda.dk.serial.connection.factory
Class SerialConnectionFactory

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.serial.connection.factory.SerialConnectionFactory
All Implemented Interfaces:
org.eclipse.soda.sat.core.framework.interfaces.IManagedServiceFactoryAdvisor, org.osgi.framework.BundleActivator, org.osgi.service.cm.ManagedServiceFactory

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

Serial Port (RS232) Connection.

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

The list of exported services:

Version:
1.1.0
See Also:
SerialConnectionService, ConnectionService

Field Summary
static java.lang.String CLASS_NAME
          Defines the full class name.
static java.lang.String[] EXPORTED_SERVICE_NAMES
          Defines the service name(s) to be registered by the SerialConnection bundle.
 
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
SerialConnectionFactory()
           
 
Method Summary
 ConnectionService createService(java.util.Dictionary dictionary)
          Creates the connection service using the specified property dictionary.
 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 SerialConnection 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
compare, createAdvisor, createImportedServiceFilters, createProperties, 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.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 full 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 SerialConnection bundle.
org.eclipse.soda.dk.connection.service.ConnectionService
org.eclipse.soda.dk.serial.connection.service.SerialConnectionService

Constructor Detail

SerialConnectionFactory

public SerialConnectionFactory()
Method Detail

createService

public ConnectionService createService(java.util.Dictionary dictionary)
Creates the connection service using the specified property dictionary.

Specified by:
createService in class ConnectionFactory
Parameters:
dictionary - The dictionary properties used to create the connection service.
Returns:
Object The connection service created by this bundle.
See Also:
SerialConnection

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 SerialConnection bundle.

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

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