|
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.testagent.managed.TestAgentManaged
public abstract class TestAgentManaged
The DeviceBundle is the standard Bundle Activator for all other transport bundle activators to subclass.
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_NAME
Defines the class name. |
static java.lang.String[] |
EXPORTED_SERVICE_NAMES
Defines the service name(s) to be registered by the testAdapter bundle. |
static java.lang.String[] |
IMPORTED_SERVICE_NAMES
Defines the imported service name(s) to be registered by the testAdapter bundle. |
static java.lang.String[] |
OPTIONAL_SERVICES
Define the optional services (String[]) constant. |
| Constructor Summary | |
|---|---|
TestAgentManaged()
|
|
| Method Summary | |
|---|---|
protected void |
activate()
Create exported services. |
java.util.Hashtable |
createManagedProperties()
Create managed properties and return the Hashtable result. |
java.util.Hashtable |
createProperties()
Gets the properties to be registered with the service(s). |
abstract TestAgent |
createService()
Create the service. |
protected void |
deactivate()
Deactivate. |
java.lang.String[] |
getExportedServiceNames()
Return the exported service name(s) to be registered by the testAdapter bundle. |
java.lang.String[] |
getImportedServiceNames()
Return the imported service name(s) to be registered by the testAdapter bundle. |
protected java.lang.String[] |
getOptionalImportedServiceNames()
Gets the optional imported service names (String[]) value. |
TestAgent |
getService()
Gets the service (Object) value. |
protected void |
handleAcquiredOptionalImportedService(java.lang.String serviceName,
java.lang.Object service)
Handle acquired optional imported service with the specified service name and service parameters. |
protected void |
handleReleasedOptionalImportedService(java.lang.String serviceName,
java.lang.Object service)
Handle released optional imported service with the specified service name and service parameters. |
void |
setService(TestAgent service)
Sets the service 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 |
| Field Detail |
|---|
public static final java.lang.String CLASS_NAME
public static final java.lang.String[] EXPORTED_SERVICE_NAMES
| org.eclipse.soda.dk.adapter.service.AdapterService |
public static final java.lang.String[] IMPORTED_SERVICE_NAMES
| org.eclipse.soda.dk.test.adapter.service.testAdapterService |
| org.eclipse.soda.dk.notification.service.NotificationService |
public static final java.lang.String[] OPTIONAL_SERVICES
| Constructor Detail |
|---|
public TestAgentManaged()
| Method Detail |
|---|
protected void activate()
public java.util.Hashtable createManagedProperties()
Hashtable)
value.public java.util.Hashtable createProperties()
| org.eclipse.soda.dk.connection.bundle.ServiceBundle.DEVICE_CLASS | testAdapter |
| org.osgi.framework.Constants.SERVICE_PID | testAdapterService.SERVICE_NAME |
| org.osgi.framework.Constants.SERVICE_DESCRIPTION | test Adapter |
| org.osgi.framework.Constants.SERVICE_VENDOR | Eclipse |
| org.osgi.service.device.Constants.DRIVER_ID | testAdapter |
| org.osgi.framework.Constants.SERVICE_RANKING | 6 |
| org.osgi.service.device.Constants.DEVICE_CATEGORY | DeviceService |
| org.eclipse.soda.dk.connection.bundle.ServiceBundle.DEVICE_REVISION | 1.0.0 |
createManagedProperties(),
updateProperties(Dictionary,Dictionary)public abstract TestAgent createService()
Object) value.getService(),
handleAcquiredOptionalImportedService(String,Object),
handleReleasedOptionalImportedService(String,Object),
setService(TestAgent)protected void deactivate()
public java.lang.String[] getExportedServiceNames()
public java.lang.String[] getImportedServiceNames()
getOptionalImportedServiceNames()protected java.lang.String[] getOptionalImportedServiceNames()
String[])
value.public TestAgent getService()
Object) value.createService(),
handleAcquiredOptionalImportedService(String,Object),
handleReleasedOptionalImportedService(String,Object),
setService(TestAgent)
protected void handleAcquiredOptionalImportedService(java.lang.String serviceName,
java.lang.Object service)
String) parameter.
The service (Object) parameter.
serviceName - The service name (String) parameter.service - The service (Object) parameter.
protected void handleReleasedOptionalImportedService(java.lang.String serviceName,
java.lang.Object service)
String) parameter.
The service (Object) parameter.
serviceName - The service name (String) parameter.service - The service (Object) parameter.public void setService(TestAgent service)
Object) parameter.
service - The service (TestAgent) parameter.createService(),
getService(),
handleAcquiredOptionalImportedService(String,Object),
handleReleasedOptionalImportedService(String,Object)
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()
public void updated(java.util.Dictionary properties)
throws ConfigurationException
Dictionary) parameter.
Configuration Exception.
properties - The properties (Dictionary) parameter.
ConfigurationException - Configuration Exception.
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||