2008-07-29 1.1.0

org.eclipse.soda.dk.multicast.transport.factory
Class MulticastTransportFactory

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.transport.factory.TransportFactory
                  extended by org.eclipse.soda.dk.multicast.transport.factory.MulticastTransportFactory
All Implemented Interfaces:
org.eclipse.soda.sat.core.framework.interfaces.IManagedServiceFactoryAdvisor, org.osgi.framework.BundleActivator, org.osgi.service.cm.ManagedServiceFactory

public class MulticastTransportFactory
extends TransportFactory
implements org.osgi.framework.BundleActivator

Multicast Transport.

The transport bundle activator class creates and registers the MulticastTransport transport.

The Device Kit properties keys and default values.

The list of exported services:

Version:
1.1.0
See Also:
MulticastTransportService, TransportService

Field Summary
static java.lang.String CLASS_NAME
          Defines the full class name.
static java.lang.String[] DEVICE_CATEGORY
          Defines the org.osgi.service.device.Constants.DEVICE_CATEGORY property.
static java.lang.String[] EXPORTED_SERVICE_NAMES
          Defines the service name(s) to be registered by the MulticastTransport bundle.
 
Fields inherited from class org.eclipse.soda.dk.transport.factory.TransportFactory
OPTIONAL_SERVICES
 
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
 
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
MulticastTransportFactory()
           
 
Method Summary
 java.util.Hashtable createProperties()
          Gets the properties to be registered with the service(s).
 TransportService createService(ConnectionService connection)
          Creates the transport service to be registered with the OSGi system.
 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 MulticastTransport bundle.
 
Methods inherited from class org.eclipse.soda.dk.transport.factory.TransportFactory
create, destroy, getInterestServiceName, getOptionalImportedServiceNames, handleAcquiredOptionalImportedService, handleReleasedOptionalImportedService, isFactoryConnection, update
 
Methods inherited from class org.eclipse.soda.dk.core.factory.CoreFactory
compare, createAdvisor, createImportedServiceFilters, getIds, getImportedServiceNames, getImportedServiceNames, getMinorProperties, getOptionalImportedServiceNames, handleAcquiredOptionalImportedService, 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, validateConfiguration
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
Defines the full class name.

See Also:
Constant Field Values

DEVICE_CATEGORY

public static final java.lang.String[] DEVICE_CATEGORY
Defines the org.osgi.service.device.Constants.DEVICE_CATEGORY property.


EXPORTED_SERVICE_NAMES

public static final java.lang.String[] EXPORTED_SERVICE_NAMES
Defines the service name(s) to be registered by the MulticastTransport bundle.
org.eclipse.soda.dk.transport.service.TransportService

Constructor Detail

MulticastTransportFactory

public MulticastTransportFactory()
Method Detail

createProperties

public java.util.Hashtable createProperties()
Gets the properties to be registered with the service(s).

Overrides:
createProperties in class org.eclipse.soda.dk.core.factory.CoreFactory
Returns:
Hashtable of properties.
org.osgi.framework.Constants.SERVICE_RANKING 6
org.osgi.service.device.Constants.DEVICE_CATEGORY TransportService
org.eclipse.soda.dk.connection.bundle.ServiceBundle.DEVICE_CLASS Multicast
org.osgi.framework.Constants.SERVICE_PID MulticastTransportService.SERVICE_NAME
org.osgi.service.device.Constants.DRIVER_ID MulticastTransport

createService

public TransportService createService(ConnectionService connection)
Creates the transport service to be registered with the OSGi system.

Specified by:
createService in class TransportFactory
Parameters:
connection - The connection service to be used when creating this transport service.
Returns:
Object The transport service
See Also:
MulticastTransport

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

Overrides:
getExportedServiceNames in class TransportFactory
Parameters:
pid - pid.
oldProperties - old properties.
properties - properties.
manager - manager.
Returns:
String[] The transport's service names.

2008-07-29 1.1.0

Copyright (c) 1999, 2008 IBM and others. See license in Legal section. OSGi Framework Version 3.4.0.v20080605-1900