2008-02-07 1.1.0

org.eclipse.soda.dk.generic.io.simulator.device.managed
Class GenericIoSimulatorDeviceManaged

java.lang.Object
  extended by DeviceManaged
      extended by org.eclipse.soda.dk.generic.io.simulator.device.managed.GenericIoSimulatorDeviceManaged
All Implemented Interfaces:
BundleActivator
Direct Known Subclasses:
GenericIoSimulatorDeviceActivator

public class GenericIoSimulatorDeviceManaged
extends DeviceManaged
implements BundleActivator

Simulation of GenericIo Device with an SWT window.

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

The list of exported services:

Version:
1.1.0
See Also:
GenericIoSimulatorDeviceService,

See the following specification(s) for more details:


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 GenericIoSimulatorDevice bundle.
 
Constructor Summary
GenericIoSimulatorDeviceManaged()
           
 
Method Summary
 java.util.Hashtable createProperties()
          Gets the properties to be registered with the service(s).
 DeviceService createService(TransportService bundleContext)
          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 GenericIoSimulatorDevice bundle.
 
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
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
Defines the 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 GenericIoSimulatorDevice bundle.
org.eclipse.soda.dk.device.service.DeviceService
org.eclipse.soda.dk.generic.io.simulator.device.service.GenericIoSimulatorDeviceService

Constructor Detail

GenericIoSimulatorDeviceManaged

public GenericIoSimulatorDeviceManaged()
Method Detail

createProperties

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

Returns:
Hashtable of properties.
org.osgi.framework.Constants.SERVICE_PID GenericIoSimulatorDeviceService.SERVICE_NAME
org.osgi.framework.Constants.SERVICE_DESCRIPTION GenericIoSimulatorDeviceService.SERVICE_DESCRIPTION
org.osgi.framework.Constants.SERVICE_VENDOR IBM
org.osgi.framework.Constants.SERVICE_RANKING 6

createService

public DeviceService createService(TransportService bundleContext)
Creates the device using the specified bundleContext.

Parameters:
bundleContext - The osgi bundle context to used when creating the device service.
Returns:
Object The device service created by this bundle.
See Also:
GenericIoSimulatorDevice

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

Parameters:
pid - pid.
oldProperties - old properties.
properties - properties.
manager - manager.
Returns:
String[] The device's service names.

2008-02-07 1.1.0

Copyright (c) 2008 IBM. See license in Legal section.