|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectBaseBundleActivator
org.eclipse.soda.dk.transport.managed.TransportManaged
public abstract class TransportManaged
The TransportBundle is the standard Bundle Activator for all other transport bundle activators to subclass.
| Constructor Summary | |
|---|---|
TransportManaged()
|
|
| 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. |
java.lang.Object |
createService()
Create service and return the Object result. |
abstract TransportService |
createService(ConnectionService connection)
Creates and returns the transport service to be registered. |
void |
createTransport(java.util.Dictionary properties,
ConnectionService connection)
Create transport with the specified properties and connection parameters. |
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. |
protected void |
handleAcquiredImportedService(java.lang.Object service)
Handle acquired imported service with the specified service parameter. |
protected void |
handleReleasedImportedService(java.lang.Object service)
Handle released imported service with the specified service parameter. |
boolean |
isFactoryConnection()
Gets the factory connection (boolean) value. |
boolean |
isFactoryConnection(java.util.Dictionary properties)
Is factory connection with the specified properties parameter and return the boolean result. |
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. |
protected boolean |
requiresAllImportedServices()
Requires all imported services and return the boolean result. |
void |
setFactoryConnection(boolean factoryConnection)
Sets the factory connection value. |
void |
setManagedProperties(java.util.Dictionary managedProperties)
Sets the managed properties value. |
void |
setTransport(TransportService transport)
Sets the transport value. |
void |
updated(java.util.Dictionary properties)
Updated with the specified properties parameter. |
void |
updateProperties(java.util.Dictionary table,
java.util.Dictionary from)
Update properties with the specified table and from parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransportManaged()
| Method Detail |
|---|
protected void activate()
public java.util.Hashtable createManagedProperties()
Hashtable)
value.getManagedProperties(),
setManagedProperties(Dictionary)public java.util.Hashtable createProperties()
Hashtable)
value.createManagedProperties(),
getManagedProperties(),
setManagedProperties(Dictionary),
updateProperties(Dictionary,Dictionary)public java.lang.Object createService()
Object) value.createService(ConnectionService),
handleAcquiredImportedService(Object),
handleReleasedImportedService(Object)public abstract TransportService createService(ConnectionService connection)
ConnectionService) parameter.
connection - The connection (ConnectionService) parameter.
Object) value.createService(),
handleAcquiredImportedService(Object),
handleReleasedImportedService(Object)
public void createTransport(java.util.Dictionary properties,
ConnectionService connection)
Dictionary) parameter.
The connection (ConnectionService) parameter.
properties - The properties (Dictionary) parameter.connection - The connection (ConnectionService) parameter.getTransport(),
setTransport(TransportService)protected void deactivate()
public ConnectionService getDefaultConnection()
ConnectionService)
value.public java.lang.String[] getExportedServiceNames()
String[]) value.public java.util.Dictionary getManagedProperties()
Dictionary) value.createManagedProperties(),
setManagedProperties(Dictionary)public java.lang.String getServiceName()
String) value.public TransportService getTransport()
TransportService) value.createTransport(Dictionary,ConnectionService),
setTransport(TransportService)protected void handleAcquiredImportedService(java.lang.Object service)
Object) parameter.
service - The service (Object) parameter.protected void handleReleasedImportedService(java.lang.Object service)
Object) parameter.
service - The service (Object) parameter.public boolean isFactoryConnection(java.util.Dictionary properties)
Dictionary) parameter.
properties - The properties (Dictionary) parameter.
boolean)
value.isFactoryConnection(),
setFactoryConnection(boolean)public boolean isFactoryConnection()
boolean) value.isFactoryConnection(Dictionary),
setFactoryConnection(boolean)
public void log(int severity,
java.lang.String message)
int) parameter.
The message (String) parameter.
severity - The severity (int) parameter.message - The message (String) parameter.log(int,String,Throwable)
public void log(int severity,
java.lang.String message,
java.lang.Throwable exception)
int) parameter.
The message (String) parameter.
The exception (Throwable) parameter.
severity - The severity (int) parameter.message - The message (String) parameter.exception - The exception (Throwable) parameter.log(int,String)protected boolean requiresAllImportedServices()
boolean)
value.public void setFactoryConnection(boolean factoryConnection)
boolean) parameter.
factoryConnection - The factory connection (boolean) parameter.isFactoryConnection(Dictionary),
isFactoryConnection()public void setManagedProperties(java.util.Dictionary managedProperties)
Dictionary)
parameter.
managedProperties - The managed properties (Dictionary) parameter.createManagedProperties(),
getManagedProperties()public void setTransport(TransportService transport)
TransportService) parameter.
transport - The transport (TransportService) parameter.createTransport(Dictionary,ConnectionService),
getTransport()
public void updateProperties(java.util.Dictionary table,
java.util.Dictionary from)
Dictionary) parameter.
The from (Dictionary) parameter.
table - The table (Dictionary) parameter.from - The from (Dictionary) parameter.createManagedProperties(),
createProperties(),
getManagedProperties(),
setManagedProperties(Dictionary)
public void updated(java.util.Dictionary properties)
throws org.osgi.service.cm.ConfigurationException
Dictionary) parameter.
Configuration Exception.
updated in interface org.osgi.service.cm.ManagedServiceproperties - The properties (Dictionary) parameter.
org.osgi.service.cm.ConfigurationException - Configuration Exception.
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||