1.0.0

org.eclipse.soda.dk.transport.bundle
Class TunnelTransportBundle

java.lang.Object
  extended by BaseBundleActivator
      extended by org.eclipse.soda.dk.connection.bundle.ServiceBundle
          extended by org.eclipse.soda.dk.connection.bundle.ServiceInterestBundle
              extended by org.eclipse.soda.dk.transport.bundle.TunnelTransportBundle
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public abstract class TunnelTransportBundle
extends ServiceInterestBundle
implements org.osgi.framework.BundleActivator

The TunnelTransportBundle is the base bundle activator for all turnnel transports.

Version:
1.0.0

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
DEVICE_CLASS, DEVICE_REVISION
 
Constructor Summary
TunnelTransportBundle()
           
 
Method Summary
protected  void activate()
          Create exported services.
 java.lang.Object createService()
          Create service and return the Object result.
abstract  java.lang.Object createService(TransportService transport)
          Create and return the TransportService.
protected  void deactivate()
           
 TransportService getDefaultTransport()
          Method getDefaultTransport.
 java.lang.String getServiceName()
          Return the service name.
 TransportService getTransport()
          Returns the transport service created by the bundle activator.
 
Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceInterestBundle
destroyExportedServices, getInterest, getInterestServiceName, setInterest
 
Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
createProperties, getExportedServiceNames, getService, log, log, setService
 
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
 

Constructor Detail

TunnelTransportBundle

public TunnelTransportBundle()
Method Detail

activate

protected void activate()
Description copied from class: ServiceInterestBundle
Create exported services.

Overrides:
activate in class ServiceInterestBundle
See Also:
org.eclipse.soda.sat.core.framework.BaseBundleActivator#activate()

createService

public java.lang.Object createService()
Create service and return the Object result.

Overrides:
createService in class ServiceBundle
Returns:
Results of the create service (Object) value.
See Also:
createService(TransportService)

createService

public abstract java.lang.Object createService(TransportService transport)
Create and return the TransportService. Subclasses must provide an implementation of this method. The transport (TransportService) parameter.

Parameters:
transport - The transport (TransportService) parameter.
Returns:
Results of the create service (Object) value.
See Also:
createService()

deactivate

protected void deactivate()
See Also:
org.eclipse.soda.sat.core.framework.BaseBundleActivator#deactivate()

getDefaultTransport

public TransportService getDefaultTransport()
Method getDefaultTransport.

Returns:
Results of the get default transport (TransportService) value.

getServiceName

public java.lang.String getServiceName()
Return the service name.

Returns:
Results of the get service name (String) value.

getTransport

public TransportService getTransport()
Returns the transport service created by the bundle activator.

Returns:
Results of the get transport (TransportService) value.
See Also:
getDefaultTransport()

1.0.0

Copyright (c) 1999, 2007 IBM