2008-09-10 1.1.0

org.eclipse.soda.dk.transport.test.managed
Class TransportTestManaged

java.lang.Object
  extended by org.eclipse.soda.sat.core.framework.BaseBundleActivator
      extended by org.eclipse.soda.dk.transport.test.managed.TransportTestManaged
All Implemented Interfaces:
org.osgi.framework.BundleActivator, org.osgi.service.cm.ManagedService

public abstract class TransportTestManaged
extends org.eclipse.soda.sat.core.framework.BaseBundleActivator
implements org.osgi.service.cm.ManagedService

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
TransportTestManaged()
           
 
Method Summary
protected  void activate()
          Create exported services.
 java.util.Hashtable createManagedProperties()
          Create managed properties and return the Hashtable result.
 java.util.Hashtable createProperties()
          Create the properties.
abstract  TransportTestService createService(TransportService transport)
           
 void createTransportTest(java.util.Dictionary properties, TransportService transport)
           
protected  void deactivate()
          Deactivate.
 ConnectionService getDefaultConnection()
          Gets the default connection to be used by this transport service.
 java.lang.String[] getExportedServiceNames()
          Gets the exported service names (String[]) value.
 java.util.Dictionary getManagedProperties()
          Gets the managed properties (Dictionary) value.
 java.lang.String getServiceName()
          Return the service name to be registered.
 TransportService getTransport()
          Gets the transport (TransportService) value.
 TransportTestService getTransportTest()
          Gets the transport (TransportService) value.
protected  void handleAcquiredImportedService(java.lang.Object service)
           
protected  void handleReleasedImportedService(java.lang.Object service)
           
 boolean isFactoryConnection()
          Gets the factory connection (boolean) value.
 boolean isFactoryConnection(java.util.Dictionary properties)
           
 void log(int severity, java.lang.String message)
           
 void log(int severity, java.lang.String message, java.lang.Throwable exception)
           
protected  boolean requiresAllImportedServices()
          Requires all imported services and return the boolean result.
 void setFactoryConnection(boolean factoryConnection)
           
 void setManagedProperties(java.util.Dictionary managedProperties)
          Sets the managed properties value.
 void setTransport(TransportService transport)
          Sets the transport value.
 void setTransportTest(TransportTestService transportTest)
           
 void updated(java.util.Dictionary properties)
          Updated with the specified properties parameter.
 void updateProperties(java.util.Dictionary table, java.util.Dictionary from)
           
 
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

TransportTestManaged

public TransportTestManaged()
Method Detail

activate

protected void activate()
Create exported services.

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

createManagedProperties

public java.util.Hashtable createManagedProperties()
Create managed properties and return the Hashtable result.

Returns:
Results of the create managed properties (Hashtable) value.
See Also:
getManagedProperties(), setManagedProperties(Dictionary)

createProperties

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

Returns:
Results of the create properties (Hashtable) value.
See Also:
createManagedProperties(), getManagedProperties(), setManagedProperties(Dictionary), updateProperties(Dictionary,Dictionary)

createService

public abstract TransportTestService createService(TransportService transport)
Parameters:
transport - The transport (TransportService) parameter.
Returns:
Results of the create service (Object) value.
See Also:
handleAcquiredImportedService(Object), handleReleasedImportedService(Object)

createTransportTest

public void createTransportTest(java.util.Dictionary properties,
                                TransportService transport)
Parameters:
properties - The properties (Dictionary) parameter.
transport - The transport (TransportService) parameter.
See Also:
getTransportTest(), setTransportTest(TransportTestService)

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 (TransportService) value.

getExportedServiceNames

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

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

getManagedProperties

public java.util.Dictionary getManagedProperties()
Gets the managed properties (Dictionary) value.

Returns:
The managed properties (Dictionary) value.
See Also:
createManagedProperties(), setManagedProperties(Dictionary)

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)

getTransportTest

public TransportTestService getTransportTest()
Gets the transport (TransportService) value.

Returns:
The transport (TransportService) value.
See Also:
createTransportTest(Dictionary,TransportService), setTransportTest(TransportTestService)

handleAcquiredImportedService

protected void handleAcquiredImportedService(java.lang.Object service)
Parameters:
service - The service (Object) parameter.

handleReleasedImportedService

protected void handleReleasedImportedService(java.lang.Object service)
Parameters:
service - The service (Object) parameter.

isFactoryConnection

public boolean isFactoryConnection()
Gets the factory connection (boolean) value.

Returns:
The factory connection (boolean) value.
See Also:
isFactoryConnection(Dictionary), setFactoryConnection(boolean)

isFactoryConnection

public boolean isFactoryConnection(java.util.Dictionary properties)
Parameters:
properties - The properties (Dictionary) parameter.
Returns:
Results of the is factory connection (boolean) value.
See Also:
isFactoryConnection(), setFactoryConnection(boolean)

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)

requiresAllImportedServices

protected boolean requiresAllImportedServices()
Requires all imported services and return the boolean result.

Returns:
Results of the requires all imported services (boolean) value.

setFactoryConnection

public void setFactoryConnection(boolean factoryConnection)
Parameters:
factoryConnection - The factory connection (boolean) parameter.
See Also:
isFactoryConnection(Dictionary), isFactoryConnection()

setManagedProperties

public void setManagedProperties(java.util.Dictionary managedProperties)
Sets the managed properties value. The managed properties (Dictionary) parameter.

Parameters:
managedProperties - The managed properties (Dictionary) parameter.
See Also:
createManagedProperties(), getManagedProperties()

setTransport

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

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

setTransportTest

public void setTransportTest(TransportTestService transportTest)
Parameters:
transportTest - The transport test (TransportTestService) parameter.
See Also:
createTransportTest(Dictionary,TransportService), getTransportTest()

updated

public void updated(java.util.Dictionary properties)
             throws org.osgi.service.cm.ConfigurationException
Updated with the specified properties parameter. The properties (Dictionary) parameter. Configuration Exception.

Specified by:
updated in interface org.osgi.service.cm.ManagedService
Parameters:
properties - The properties (Dictionary) parameter.
Throws:
org.osgi.service.cm.ConfigurationException - Configuration Exception.

updateProperties

public void updateProperties(java.util.Dictionary table,
                             java.util.Dictionary from)
Parameters:
table - The table (Dictionary) parameter.
from - The from (Dictionary) parameter.
See Also:
createManagedProperties(), createProperties(), getManagedProperties(), setManagedProperties(Dictionary)

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