1.0.0

org.eclipse.soda.dk.agent.managed
Class AgentManaged

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.agent.managed.AgentManaged
All Implemented Interfaces:
org.osgi.service.cm.ManagedService

public abstract class AgentManaged
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
AgentManaged()
           
 
Method Summary
 java.lang.Object createService()
          Create service and return the Object result.
 AgentService createService(DeviceService device)
          Create service with the specified device parameter and return the Object result.
protected  void deactivate()
          Deactivate.
 AgentService getAgent()
          Return the agent.
 DeviceService getDevice()
          Get the DeviceService to be used by the agent.
 java.lang.String getDeviceServiceName()
          Method getDeviceServiceName.
 java.lang.String getInterestServiceName()
          Gets the interest service name (String) value.
 java.lang.String[] getMatchAgentClasses()
          Return the match strings.
 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

AgentManaged

public AgentManaged()
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 AgentService 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.


getAgent

public AgentService getAgent()
Return the agent.

Returns:
Results of the get agent (AgentService) value.

getDevice

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

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()

getMatchAgentClasses

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

Returns:
Results of the get match agent classes (String[]) 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