2008-02-07 1.1.0

org.eclipse.soda.dk.udp.transport.managed
Class UdpTransportManaged

java.lang.Object
  extended by org.eclipse.soda.sat.core.framework.BaseBundleActivator
      extended by org.eclipse.soda.sat.core.framework.ManagedServiceBundleActivator
          extended by org.eclipse.soda.dk.core.managed.CoreManaged
              extended by org.eclipse.soda.dk.transport.managed.TransportManaged
                  extended by org.eclipse.soda.dk.udp.transport.managed.UdpTransportManaged
All Implemented Interfaces:
org.eclipse.soda.sat.core.framework.interfaces.IManagedServiceAdvisor, org.osgi.framework.BundleActivator, org.osgi.service.cm.ManagedService

public class UdpTransportManaged
extends TransportManaged
implements org.osgi.framework.BundleActivator

User Diagram Protocol (UDP) Transport.

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

The devicekit properties keys and default values.

The list of exported services:

Version:
1.1.0
See Also:
UdpTransportService, TransportService

Field Summary
static java.lang.String CLASS_NAME
          Defines the 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 UdpTransport bundle.
 
Fields inherited from class org.eclipse.soda.dk.transport.managed.TransportManaged
OPTIONAL_SERVICES
 
Fields inherited from class org.eclipse.soda.dk.core.managed.CoreManaged
CONFIGURATION_ADMIN_SERVICE, ID_KEY, ID_KEY_FILTER, IMPORTED_SERVICES, METATYPE_SERVICE
 
Fields inherited from class org.eclipse.soda.sat.core.framework.ManagedServiceBundleActivator
CONFIGURATION_ADMIN_SERVICE_NAME, MANAGED_SERVICE_SERVICE_NAME
 
Fields inherited from class org.eclipse.soda.sat.core.framework.BaseBundleActivator
NO_SERVICES
 
Constructor Summary
UdpTransportManaged()
           
 
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()
          Return the exported service name(s) to be registered by the UdpTransport bundle.
 
Methods inherited from class org.eclipse.soda.dk.transport.managed.TransportManaged
create, destroy, getExportedServiceNames, getInterestServiceName, getOptionalImportedServiceNames, handleAcquiredOptionalImportedService, handleReleasedOptionalImportedService, isManagedConnection, update
 
Methods inherited from class org.eclipse.soda.dk.core.managed.CoreManaged
createAdvisor, createImportedServiceFilters, getImportedServiceNames, getImportedServiceNames, getOptionalImportedServiceNames, handleAcquiredOptionalImportedService, handleReleasedOptionalImportedService, updateProperties, validateConfiguration
 
Methods inherited from class org.eclipse.soda.sat.core.framework.ManagedServiceBundleActivator
activate, collectImportedServiceNames, createDefaultPid, createPid, deactivate, 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, handleAcquiredOptionalImportedService, handleException, handleFailedToFindProperties, handleReleasedOptionalImportedService, 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.ManagedService
updated
 
Methods inherited from interface org.eclipse.soda.sat.core.framework.interfaces.IManagedServiceAdvisor
createImportedServiceFilters, getImportedServiceNames, validateConfiguration
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
Defines the 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 UdpTransport bundle.
org.eclipse.soda.dk.transport.service.TransportService

Constructor Detail

UdpTransportManaged

public UdpTransportManaged()
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.managed.CoreManaged
Returns:
Hashtable of properties.
org.eclipse.soda.dk.connection.bundle.ServiceBundle.DEVICE_CLASS Udp
org.osgi.framework.Constants.SERVICE_PID UdpTransportService.SERVICE_NAME
org.osgi.framework.Constants.SERVICE_DESCRIPTION User Diagram Protocol (UDP) Transport
org.osgi.framework.Constants.SERVICE_VENDOR Eclipse
org.osgi.service.device.Constants.DRIVER_ID UdpTransport
org.osgi.framework.Constants.SERVICE_RANKING 6
org.osgi.service.device.Constants.DEVICE_CATEGORY TransportService
org.eclipse.soda.dk.connection.bundle.ServiceBundle.DEVICE_REVISION 1.0.0

createService

public TransportService createService(ConnectionService connection)
Creates the transport service to be registered with the OSGi system. The connection service to be used when creating this transport service.

Specified by:
createService in class TransportManaged
Parameters:
connection - The connection (ConnectionService) parameter.
Returns:
Object The transport service
See Also:
UdpTransport

getExportedServiceNames

public java.lang.String[] getExportedServiceNames()
Return the exported service name(s) to be registered by the UdpTransport bundle.

Returns:
String[] The transport'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