1.0.0

org.eclipse.soda.dk.profile.managed
Class ProfileManaged

java.lang.Object
  extended by BaseBundleActivator
      extended by org.eclipse.soda.dk.connection.bundle.ServiceBundle
          extended by org.eclipse.soda.dk.connection.bundle.ServiceInterestBundle
              extended by org.eclipse.soda.dk.profile.managed.ProfileManaged
All Implemented Interfaces:
org.osgi.service.cm.ManagedService

public abstract class ProfileManaged
extends ServiceInterestBundle
implements org.osgi.service.cm.ManagedService

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

Version:
1.0.0

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
DEVICE_CLASS, DEVICE_REVISION
 
Constructor Summary
ProfileManaged()
           
 
Method Summary
 java.lang.Object createService()
          Create service and return the Object result.
 ProfileService createService(DeviceService device)
          Create service with the specified device parameter and return the Object result.
protected  void deactivate()
          Deactivate.
 DeviceService getDevice()
          Get the DeviceService to be used by the profile.
 java.lang.String getDeviceServiceName()
          Method getDeviceServiceName.
 java.lang.String getInterestServiceName()
          Gets the interest service name (String) value.
 java.lang.String[] getMatchAdapterClasses()
          Return the match strings.
 ProfileService getProfile()
          Return the profile.
 java.lang.String getServiceName()
          Return the service name.
 void setInterest(java.lang.Object interest)
          Sets the interest 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 org.eclipse.soda.dk.connection.bundle.ServiceInterestBundle
activate, destroyExportedServices, getInterest
 
Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
createProperties, getExportedServiceNames, getService, log, log, setService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileManaged

public ProfileManaged()
Method Detail

createService

public java.lang.Object createService()
Create service and return the Object result.

Overrides:
createService in class ServiceBundle
Returns:
Results of the create service (Object) value.
See Also:
createService(DeviceService)

createService

public ProfileService createService(DeviceService device)
Create service with the specified device parameter and return the Object result. The device (DeviceService) parameter.

Parameters:
device - The device (DeviceService) parameter.
Returns:
Results of the create service (Object) value.
See Also:
createService()

deactivate

protected void deactivate()
Deactivate.


getDevice

public DeviceService getDevice()
Get the DeviceService to be used by the profile.

Returns:
Results of the get device (DeviceService) value.

getDeviceServiceName

public java.lang.String getDeviceServiceName()
Method getDeviceServiceName.

Returns:
Results of the get device service name (String) value.

getInterestServiceName

public java.lang.String getInterestServiceName()
Description copied from class: ServiceInterestBundle
Gets the interest service name (String) value.

Overrides:
getInterestServiceName in class ServiceInterestBundle
Returns:
Results of the get interest service name (String) value.
See Also:
ServiceInterestBundle.getInterestServiceName()

getMatchAdapterClasses

public java.lang.String[] getMatchAdapterClasses()
Return the match strings.

Returns:
Results of the get match profile classes (String[]) value.

getProfile

public ProfileService getProfile()
Return the profile.

Returns:
Results of the get profile (ProfileService) value.

getServiceName

public java.lang.String getServiceName()
Return the service name.

Returns:
Results of the get service name (String) value.
See Also:
getDeviceServiceName(), getInterestServiceName()

setInterest

public void setInterest(java.lang.Object interest)
Description copied from class: ServiceInterestBundle
Sets the interest value. The interest (Object) parameter.

Overrides:
setInterest in class ServiceInterestBundle
Parameters:
interest - The interest (Object) parameter.
See Also:
The interest (Object) parameter.

updateProperties

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

Parameters:
table - The table (Dictionary) parameter.
from - The from (Dictionary) parameter.

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.

1.0.0

Copyright (c) 1999, 2007 IBM