2009-01-09 1.2.0

org.eclipse.soda.dk.core.bundle
Class CoreBundle

java.lang.Object
  extended by BaseBundleActivator
      extended by org.eclipse.soda.dk.core.bundle.CoreBundle
All Implemented Interfaces:
org.osgi.service.cm.ManagedService

public abstract class CoreBundle
extends BaseBundleActivator
implements org.osgi.service.cm.ManagedService

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

Since:
1.0
Version:
1.2.0

Constructor Summary
CoreBundle()
           
 
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.
protected  void deactivate()
          Deactivate.
 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.
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.
 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 setManagedProperties(java.util.Dictionary managedProperties)
          Sets the managed properties 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.
 void updateProperties(java.util.Dictionary table, java.util.Map 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

CoreBundle

public CoreBundle()
Method Detail

activate

protected void activate()
Create exported services.


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), updateProperties(Dictionary,Map)

deactivate

protected void deactivate()
Deactivate.


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.

handleAcquiredImportedService

protected void handleAcquiredImportedService(java.lang.Object service)
Handle acquired imported service with the specified service parameter.

Parameters:
service - The service (Object) parameter.

handleReleasedImportedService

protected void handleReleasedImportedService(java.lang.Object service)
Handle released imported service with the specified service parameter.

Parameters:
service - The service (Object) parameter.

log

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

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.

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.

setManagedProperties

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

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

updateProperties

public void updateProperties(java.util.Dictionary table,
                             java.util.Dictionary from)
Update properties with the specified table and from parameters.

Parameters:
table - The table (Dictionary) parameter.
from - The from (Dictionary) parameter.
See Also:
createManagedProperties(), createProperties(), getManagedProperties(), setManagedProperties(Dictionary), updateProperties(Dictionary,Map)

updateProperties

public void updateProperties(java.util.Dictionary table,
                             java.util.Map from)
Update properties with the specified table and from parameters.

Parameters:
table - The table (Dictionary) parameter.
from - The from (Map) parameter.
See Also:
createManagedProperties(), createProperties(), getManagedProperties(), setManagedProperties(Dictionary), updateProperties(Dictionary,Dictionary)

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.

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.