|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectBaseBundleActivator
org.eclipse.soda.dk.agent.bundle.AgentBundle
public abstract class AgentBundle
The AgentBundle is the base bundle activator for all agent bundle activators.
| Field Summary | |
|---|---|
static java.lang.String[] |
OPTIONAL_SERVICES
Define the optional services (String[]) constant. |
| Constructor Summary | |
|---|---|
AgentBundle()
|
|
| Method Summary | |
|---|---|
void |
activate()
Create service and return the Object result. |
java.util.Hashtable |
createProperties()
Create the properties. |
AgentService |
createService()
Create service and return the AgentService result. |
AgentService |
createService(IBundleActivationManager manager)
Create service with the specified manager parameter and return the AgentService result. |
protected void |
deactivate()
Deactivate. |
AgentService |
getAgent()
Return the agent. |
DeviceService |
getDevice()
Get the DeviceService to be used by the agent. |
abstract java.lang.String[] |
getExportedServiceNames()
Gets the exported service names (String[]) value. |
java.lang.String |
getInterestServiceName()
Gets the interest service name (String) value. |
protected java.lang.String[] |
getOptionalImportedServiceNames()
Gets the optional imported service names (String[]) 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 |
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. |
void |
setAgent(AgentService agent)
Sets the agent value. |
void |
setDevice(DeviceService device)
Sets the device value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.osgi.framework.BundleActivator |
|---|
start, stop |
| Field Detail |
|---|
public static final java.lang.String[] OPTIONAL_SERVICES
| Constructor Detail |
|---|
public AgentBundle()
| Method Detail |
|---|
public void activate()
public java.util.Hashtable createProperties()
Hashtable)
value.public AgentService createService()
Object) value.
The device (DeviceService) parameter.createService(IBundleActivationManager),
#createService(DeviceService),
handleAcquiredOptionalImportedService(String,Object),
handleReleasedOptionalImportedService(String,Object)public AgentService createService(IBundleActivationManager manager)
manager - The manager (IBundleActivationManager) parameter.
AgentService) value.createService(),
#createService(DeviceService),
handleAcquiredOptionalImportedService(String,Object),
handleReleasedOptionalImportedService(String,Object)protected void deactivate()
public AgentService getAgent()
AgentService) value.setAgent(AgentService)public DeviceService getDevice()
DeviceService) value.setDevice(DeviceService)public abstract java.lang.String[] getExportedServiceNames()
String[]) value.public java.lang.String getInterestServiceName()
String) value.protected java.lang.String[] getOptionalImportedServiceNames()
String[])
value.
protected void handleAcquiredOptionalImportedService(java.lang.String serviceName,
java.lang.Object service)
serviceName - The service name (String) parameter.service - The service (Object) parameter.
protected void handleReleasedOptionalImportedService(java.lang.String serviceName,
java.lang.Object service)
serviceName - The service name (String) parameter.service - The service (Object) parameter.
public void log(int severity,
java.lang.String message)
severity - The severity (int) parameter.message - The message (String) parameter.log(int,String,Throwable)
public void log(int severity,
java.lang.String message,
java.lang.Throwable exception)
severity - The severity (int) parameter.message - The message (String) parameter.exception - The exception (Throwable) parameter.log(int,String)public void setAgent(AgentService agent)
agent - The agent (AgentService) parameter.getAgent()public void setDevice(DeviceService device)
device - The device (DeviceService) parameter.getDevice()
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||