|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectManagedServiceFactoryBundleActivator
org.eclipse.soda.dk.core.factory.CoreFactory
org.eclipse.soda.dk.agent.factory.AgentFactory
public abstract class AgentFactory
| Field Summary | |
|---|---|
static java.lang.String[] |
OPTIONAL_SERVICE
Define the optional service (String[]) constant. |
static java.lang.String[] |
OPTIONAL_SERVICES
Define the optional services (String[]) constant. |
| Fields inherited from class org.eclipse.soda.dk.core.factory.CoreFactory |
|---|
CHANGES_MAJOR, CHANGES_MINOR, CHANGES_NONE, CONFIGURATION_ADMIN_SERVICE, ID_KEY, ID_KEY_FILTER, ids, IMPORTED_SERVICES, METATYPE_SERVICE |
| Constructor Summary | |
|---|---|
AgentFactory()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
create(java.lang.String pid,
java.util.Dictionary properties,
IBundleActivationManager manager)
Create with the specified pid, properties and manager parameters and return the Object result. |
AgentService |
createService(DeviceService device)
Create service with the specified device parameter and return the AgentService result. |
void |
destroy(java.lang.String pid,
java.lang.Object object,
java.util.Dictionary properties,
IBundleActivationManager manager)
Destroy with the specified PID, object, properties and manager parameters. |
java.lang.String |
getDeviceServiceName()
Method getDeviceServiceName. |
java.lang.String |
getInterestServiceName()
Gets the interest service name (String) value. |
protected java.lang.String[] |
getOptionalImportedServiceNames()
Gets the optional imported service names (String[]) value. |
java.lang.String[] |
getOptionalImportedServiceNames(java.lang.String arg0,
java.util.Dictionary arg1,
java.util.Dictionary arg2,
IBundleActivationManager arg3)
Get optional imported service names with the specified arg0, arg1, arg2 and arg3 parameters and return the String[] result. |
java.lang.String |
getServiceName()
Return the service name. |
java.lang.String[] |
getServiceNames()
Gets the service names (String[]) value. |
void |
handleAcquiredOptionalImportedService(java.lang.String pid,
java.lang.Object object,
java.lang.String importedServiceName,
java.lang.Object importedService,
IBundleActivationManager manager)
Handle acquired optional imported service with the specified PID, object, imported service name, imported service and manager parameters. |
void |
handleReleasedOptionalImportedService(java.lang.String pid,
java.lang.Object object,
java.lang.String importedServiceName,
java.lang.Object importedService,
IBundleActivationManager manager)
Handle released optional imported service with the specified PID, object, imported service name, imported service and manager parameters. |
java.lang.Object |
update(java.lang.String pid,
java.lang.Object object,
java.util.Dictionary oldProperties,
java.util.Dictionary properties,
IBundleActivationManager manager)
Update with the specified PID, object, old properties, properties and manager parameters and return the Object result. |
| Methods inherited from class org.eclipse.soda.dk.core.factory.CoreFactory |
|---|
compare, createAdvisor, createImportedServiceFilters, createProperties, getExportedServiceNames, getIds, getImportedServiceNames, getImportedServiceNames, getMinorProperties, handleAcquiredOptionalImportedService, handleReleasedOptionalImportedService, setIds, updateProperties, updateProperties, validateConfiguration, validateConfigurationIds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.osgi.service.cm.ManagedServiceFactory |
|---|
deleted, getName, updated |
| Field Detail |
|---|
public static final java.lang.String[] OPTIONAL_SERVICE
public static final java.lang.String[] OPTIONAL_SERVICES
| Constructor Detail |
|---|
public AgentFactory()
| Method Detail |
|---|
public java.lang.Object create(java.lang.String pid,
java.util.Dictionary properties,
IBundleActivationManager manager)
String) parameter. The properties (Dictionary) parameter. The manager (IBundleActivationManager)
parameter.
pid - The PID (String) parameter.properties - The properties (Dictionary) parameter.manager - The manager (IBundleActivationManager) parameter.
Object) value.public AgentService createService(DeviceService device)
device - The device (DeviceService) parameter.
Object) value.#createService(IBundleActivationManager),
handleAcquiredOptionalImportedService(String,Object,String,Object,IBundleActivationManager),
handleReleasedOptionalImportedService(String,Object,String,Object,IBundleActivationManager)
public void destroy(java.lang.String pid,
java.lang.Object object,
java.util.Dictionary properties,
IBundleActivationManager manager)
destroy in class CoreFactorypid - The PID (String) parameter.object - The object (Object) parameter.properties - The properties (Dictionary) parameter.manager - The manager (IBundleActivationManager) parameter.public java.lang.String getDeviceServiceName()
String) value.public java.lang.String getInterestServiceName()
getInterestServiceName in class CoreFactoryString) value.protected java.lang.String[] getOptionalImportedServiceNames()
getOptionalImportedServiceNames in class CoreFactoryString[]) value.getOptionalImportedServiceNames(String,Dictionary,Dictionary,IBundleActivationManager)
public java.lang.String[] getOptionalImportedServiceNames(java.lang.String arg0,
java.util.Dictionary arg1,
java.util.Dictionary arg2,
IBundleActivationManager arg3)
getOptionalImportedServiceNames in class CoreFactoryarg0 - The arg0 (String) parameter.arg1 - The arg1 (Dictionary) parameter.arg2 - The arg2 (Dictionary) parameter.arg3 - The arg3 (IBundleActivationManager) parameter.
String[]) value.getOptionalImportedServiceNames()public java.lang.String getServiceName()
String) value.getDeviceServiceName(),
getInterestServiceName()public java.lang.String[] getServiceNames()
String[]) value.getOptionalImportedServiceNames(),
getOptionalImportedServiceNames(String,Dictionary,Dictionary,IBundleActivationManager)
public void handleAcquiredOptionalImportedService(java.lang.String pid,
java.lang.Object object,
java.lang.String importedServiceName,
java.lang.Object importedService,
IBundleActivationManager manager)
handleAcquiredOptionalImportedService in class CoreFactorypid - The PID (String) parameter.object - The object (Object) parameter.importedServiceName - The imported service name (String) parameter.importedService - The imported service (Object) parameter.manager - The manager (IBundleActivationManager) parameter.CoreFactory.handleAcquiredOptionalImportedService(String,Object)
public void handleReleasedOptionalImportedService(java.lang.String pid,
java.lang.Object object,
java.lang.String importedServiceName,
java.lang.Object importedService,
IBundleActivationManager manager)
handleReleasedOptionalImportedService in class CoreFactorypid - The PID (String) parameter.object - The object (Object) parameter.importedServiceName - The imported service name (String) parameter.importedService - The imported service (Object) parameter.manager - The manager (IBundleActivationManager) parameter.CoreFactory.handleReleasedOptionalImportedService(String,Object)
public java.lang.Object update(java.lang.String pid,
java.lang.Object object,
java.util.Dictionary oldProperties,
java.util.Dictionary properties,
IBundleActivationManager manager)
pid - The PID (String) parameter.object - The object (Object) parameter.oldProperties - The old properties (Dictionary) parameter.properties - The properties (Dictionary) parameter.manager - The manager (IBundleActivationManager) parameter.
Object) value.
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||