2008-09-10 1.1.0

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

java.lang.Object
  extended by org.eclipse.soda.sat.core.framework.BaseBundleActivator
      extended by org.eclipse.soda.dk.transport.bundle.TransportBundle
All Implemented Interfaces:
org.osgi.framework.BundleActivator
Direct Known Subclasses:
MulticastTransportBundle, UdpTransportBundle

public abstract class TransportBundle
extends org.eclipse.soda.sat.core.framework.BaseBundleActivator

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

Version:
1.1.0

Field Summary
 
Fields inherited from class org.eclipse.soda.sat.core.framework.BaseBundleActivator
NO_SERVICES
 
Constructor Summary
TransportBundle()
           
 
Method Summary
protected  void activate()
          Activate.
 java.util.Hashtable createProperties()
          Create the properties.
abstract  TransportService createService(ConnectionService connection)
           
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)
           
 void log(int severity, java.lang.String message, java.lang.Throwable exception)
           
 void setTransport(TransportService transport)
           
 
Methods inherited from class org.eclipse.soda.sat.core.framework.BaseBundleActivator
acquireImportedService, acquireImportedServices, acquireOptionalImportedServices, addExportedProxyService, addExportedProxyServices, addExportedService, addExportedServices, addImportedServiceFilter, addOptionalImportedServiceFilter, basicGetImportedServiceNames, basicGetOptionalImportedServiceNames, collectImportedServiceNames, collectOptionalImportedServiceNames, getAsyncStartPriority, getBundle, getBundleActivationManager, getBundleContext, getBundleSymbolicName, getDataDirectory, getDataFile, getExportedService, getExportedServiceNamesFromManifest, getExportedServiceProperties, getExportedServiceProperties, getExportedServices, getExportedServices, getFilePropertiesInputStream, getFilePropertiesInputStream, getImportedService, getImportedServiceFilter, getImportedServiceNames, getImportedServiceNamesFromManifest, getImportedServiceProperty, getImportedServicePropertyKeys, getImportedServices, getOptionalImportedService, getOptionalImportedServiceFilter, getOptionalImportedServiceNames, 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
 

Constructor Detail

TransportBundle

public TransportBundle()
Method Detail

activate

protected void activate()
Activate.

Overrides:
activate in class org.eclipse.soda.sat.core.framework.BaseBundleActivator

createProperties

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

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

createService

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

deactivate

protected void deactivate()
Deactivate.

Overrides:
deactivate in class org.eclipse.soda.sat.core.framework.BaseBundleActivator

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)
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)
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)
Parameters:
transport - The transport (TransportService) parameter.
See Also:
getTransport()

2008-09-10 1.1.0

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