1.0.0

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

java.lang.Object
  extended by BaseBundleActivator
      extended by org.eclipse.soda.dk.transport.bundle.TransportBundle
Direct Known Subclasses:
MulticastTransportBundle, UdpTransportBundle

public abstract class TransportBundle
extends BaseBundleActivator

The TransportBundle is the standard Bundle Activator for all other transport bundle activators to subclass.

Version:
1.0.0

Constructor Summary
TransportBundle()
           
 
Method Summary
protected  void activate()
          Activate.
 java.util.Hashtable createProperties()
          Create the properties.
abstract  TransportService createService(ConnectionService connection)
          Creates and returns the transport service to be registered.
protected  void deactivate()
          Deactivate.
 ConnectionService getDefaultConnection()
          Gets the default connection to be used by this transport service.
abstract  java.lang.String[] getExportedServiceNames()
          Gets the exported service names (String[]) value.
 java.lang.String getServiceName()
          Return the service name to be registered.
 TransportService getTransport()
          Gets the transport (TransportService) value.
 void log(int severity, java.lang.String message)
          Log with the specified severity and message parameters.
 void log(int severity, java.lang.String message, java.lang.Throwable exception)
          Log with the specified severity, message and exception parameters.
 void setTransport(TransportService transport)
          Sets the transport value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportBundle

public TransportBundle()
Method Detail

activate

protected void activate()
Activate.


createProperties

public java.util.Hashtable createProperties()
Create the properties.

Returns:
Results of the create properties (Hashtable) value.

createService

public abstract TransportService createService(ConnectionService connection)
Creates and returns the transport service to be registered. Subclasses must override this method. The connection (ConnectionService) parameter.

Parameters:
connection - The connection (ConnectionService) parameter.
Returns:
Results of the create service (Object) value.

deactivate

protected void deactivate()
Deactivate.


getDefaultConnection

public ConnectionService getDefaultConnection()
Gets the default connection to be used by this transport service. Normally, subclasses should override this method.

Returns:
Results of the get default connection (ConnectionService) value.

getExportedServiceNames

public abstract java.lang.String[] getExportedServiceNames()
Gets the exported service names (String[]) value.

Returns:
The exported service names (String[]) value.

getServiceName

public java.lang.String getServiceName()
Return the service name to be registered. Normally, subclasses should override this method.

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

getTransport

public TransportService getTransport()
Gets the transport (TransportService) value.

Returns:
The transport (TransportService) value.
See Also:
setTransport(TransportService)

log

public void log(int severity,
                java.lang.String message)
Log with the specified severity and message parameters. The severity (int) parameter. The message (String) parameter.

Parameters:
severity - The severity (int) parameter.
message - The message (String) parameter.
See Also:
log(int,String,Throwable)

log

public void log(int severity,
                java.lang.String message,
                java.lang.Throwable exception)
Log with the specified severity, message and exception parameters. The severity (int) parameter. The message (String) parameter. The exception (Throwable) parameter.

Parameters:
severity - The severity (int) parameter.
message - The message (String) parameter.
exception - The exception (Throwable) parameter.
See Also:
log(int,String)

setTransport

public void setTransport(TransportService transport)
Sets the transport value. The transport (TransportService) parameter.

Parameters:
transport - The transport (TransportService) parameter.
See Also:
getTransport()

1.0.0

Copyright (c) 1999, 2007 IBM