2008-09-10 1.1.0

org.eclipse.soda.dk.connection.bundle
Class ServiceBundle

java.lang.Object
  extended by org.eclipse.soda.sat.core.framework.BaseBundleActivator
      extended by org.eclipse.soda.dk.connection.bundle.ServiceBundle
All Implemented Interfaces:
org.osgi.framework.BundleActivator
Direct Known Subclasses:
ConnectionBundle, DeviceRegistryBundle, ServiceInterestBundle

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

The ServiceBundle extends the OAF BaseBundleActivator to create an object and register OSGi service(s).

Version:
1.1.0

Field Summary
static java.lang.String DEVICE_CLASS
          Define the device class (String) constant.
static java.lang.String DEVICE_REVISION
          Define the device revision (String) constant.
 
Fields inherited from class org.eclipse.soda.sat.core.framework.BaseBundleActivator
NO_SERVICES
 
Constructor Summary
ServiceBundle()
           
 
Method Summary
protected  void activate()
          Create exported services.
 java.util.Hashtable createProperties()
          Create the properties.
 java.lang.Object createService()
          Create the service.
protected  void destroyExportedServices()
          Destroy exported services.
abstract  java.lang.String[] getExportedServiceNames()
          Gets the service names (String[]) value.
 java.lang.Object getService()
          Gets the service (Object) value.
 void log(int severity, java.lang.String message)
           
 void log(int severity, java.lang.String message, java.lang.Throwable exception)
           
 void setService(java.lang.Object service)
           
 
Methods inherited from class org.eclipse.soda.sat.core.framework.BaseBundleActivator
acquireImportedService, acquireImportedServices, acquireOptionalImportedServices, addExportedProxyService, addExportedProxyServices, addExportedService, addExportedServices, addImportedServiceFilter, addOptionalImportedServiceFilter, basicGetImportedServiceNames, basicGetOptionalImportedServiceNames, collectImportedServiceNames, collectOptionalImportedServiceNames, deactivate, 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
 

Field Detail

DEVICE_REVISION

public static final java.lang.String DEVICE_REVISION
Define the device revision (String) constant.

See Also:
Constant Field Values

DEVICE_CLASS

public static final java.lang.String DEVICE_CLASS
Define the device class (String) constant.

See Also:
Constant Field Values
Constructor Detail

ServiceBundle

public ServiceBundle()
Method Detail

activate

protected void activate()
Create exported services.

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 java.lang.Object createService()
Create the service.

Returns:
Results of the create service (Object) value.
See Also:
getService(), setService(Object)

destroyExportedServices

protected void destroyExportedServices()
Destroy exported services.


getExportedServiceNames

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

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

getService

public java.lang.Object getService()
Gets the service (Object) value.

Returns:
The service (Object) value.
See Also:
createService(), setService(Object)

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)

setService

public void setService(java.lang.Object service)
Parameters:
service - The service (Object) parameter.
See Also:
createService(), getService()

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