|
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.profile.test.factory.ProfileTestFactory
public abstract class ProfileTestFactory
The TransportBundle is the standard Bundle Activator for all other transport bundle activators to subclass.
| Field Summary | |
|---|---|
static java.lang.String |
ID_KEY
Define the id key (String) constant. |
static java.lang.String |
ID_KEY_FILTER
Define the id key filter (String) constant. |
static java.lang.String |
METATYPE_SERVICE
Define the metatype service (String) constant. |
static java.lang.String[] |
OPTIONAL_SERVICE
Define the optional service (String[]) constant. |
static java.lang.String[] |
OPTIONAL_SERVICES
Define the optional services (String[]) constant. |
| Constructor Summary | |
|---|---|
ProfileTestFactory()
|
|
| 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. |
protected IManagedServiceFactoryAdvisor |
createAdvisor()
|
void |
createImportedServiceFilters(java.lang.String pid,
java.util.Dictionary oldProperties,
java.util.Dictionary properties,
IBundleActivationManager manager)
Create imported service filters with the specified PID, old properties, properties and manager parameters. |
java.util.Hashtable |
createProperties()
Create the properties. |
abstract ProfileTestService |
createService(ProfileService profile)
Create service with the specified profile parameter and return the ProfileTestService result. |
void |
delete(java.lang.String pid)
Delete with the specified PID parameter. |
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. |
abstract java.lang.String[] |
getExportedServiceNames(java.lang.String pid,
java.util.Dictionary oldProperties,
java.util.Dictionary properties,
IBundleActivationManager manager)
Gets the service names (String[]) value. |
java.lang.String[] |
getImportedServiceNames(java.lang.String pid,
java.util.Dictionary oldProperties,
java.util.Dictionary properties,
IBundleActivationManager manager)
Get imported service names with the specified arg0, arg1, arg2 and manager parameters and return the String[] result. |
java.lang.String |
getInterestServiceName()
Get the interest service name. |
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 |
getProfileServiceName()
Method getProfileServiceName. |
java.lang.String |
getServiceName()
Return the service name. |
void |
handleAcquiredImportedService(java.lang.String pid,
java.lang.Object object,
java.lang.Object service,
IBundleActivationManager manager)
Handle acquired imported service with the specified pid, object, service and manager parameters. |
protected void |
handleAcquiredOptionalImportedService(java.lang.String serviceName,
java.lang.Object service)
Handle acquired optional imported service with the specified service name and service parameters. |
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 |
handleReleasedImportedService(java.lang.String pid,
java.lang.Object object,
java.lang.Object service,
IBundleActivationManager manager)
Handle released imported service with the specified PID, object, service and manager 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 |
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. |
boolean |
requiresAllImportedServices(java.lang.String pid,
java.util.Dictionary oldProperties,
java.util.Dictionary properties)
Requires all imported services with the specified PID, old properties and properties parameters and return the boolean result. |
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. |
void |
updateProperties(java.util.Dictionary table,
java.util.Dictionary from)
Update properties with the specified table and from parameters. |
void |
validateConfiguration(java.lang.String pid,
java.util.Dictionary properties)
Validate configuration with the specified pid and properties parameters. |
| 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 ID_KEY
public static final java.lang.String ID_KEY_FILTER
public static final java.lang.String[] OPTIONAL_SERVICES
public static final java.lang.String METATYPE_SERVICE
public static final java.lang.String[] OPTIONAL_SERVICE
| Constructor Detail |
|---|
public ProfileTestFactory()
| 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.protected IManagedServiceFactoryAdvisor createAdvisor()
IManagedServiceFactoryAdvisor) value.org.eclipse.soda.sat.core.framework.ManagedServiceFactoryBundleActivator#createAdvisor()
public void createImportedServiceFilters(java.lang.String pid,
java.util.Dictionary oldProperties,
java.util.Dictionary properties,
IBundleActivationManager manager)
pid - The PID (String) parameter.oldProperties - The old properties (Dictionary) parameter.properties - The properties (Dictionary) parameter.manager - The manager (IBundleActivationManager) parameter.public java.util.Hashtable createProperties()
Hashtable) value.updateProperties(Dictionary,Dictionary)public abstract ProfileTestService createService(ProfileService profile)
profile - The profile (ProfileService) parameter.
Object) value.handleAcquiredImportedService(String,Object,Object,IBundleActivationManager),
handleAcquiredOptionalImportedService(String,Object),
handleAcquiredOptionalImportedService(String,Object,String,Object,IBundleActivationManager),
handleReleasedImportedService(String,Object,Object,IBundleActivationManager),
handleReleasedOptionalImportedService(String,Object),
handleReleasedOptionalImportedService(String,Object,String,Object,IBundleActivationManager)public void delete(java.lang.String pid)
pid - The PID (String) parameter.
public void destroy(java.lang.String pid,
java.lang.Object object,
java.util.Dictionary properties,
IBundleActivationManager manager)
String) parameter. The object (Object) parameter. The properties (Dictionary) parameter. The manager (IBundleActivationManager)
parameter.
pid - The PID (String) parameter.object - The object (Object) parameter.properties - The properties (Dictionary) parameter.manager - The manager (IBundleActivationManager) parameter.
public abstract java.lang.String[] getExportedServiceNames(java.lang.String pid,
java.util.Dictionary oldProperties,
java.util.Dictionary properties,
IBundleActivationManager manager)
pid - The PID (String) parameter.oldProperties - The old properties (Dictionary) parameter.properties - The properties (Dictionary) parameter.manager - The manager (IBundleActivationManager) parameter.
String[]) value.
public java.lang.String[] getImportedServiceNames(java.lang.String pid,
java.util.Dictionary oldProperties,
java.util.Dictionary properties,
IBundleActivationManager manager)
pid - The PID (String) parameter.oldProperties - The old properties (Dictionary) parameter.properties - The properties (Dictionary) parameter.manager - The manager (IBundleActivationManager) parameter.
String[]) value.getOptionalImportedServiceNames(),
getOptionalImportedServiceNames(String,Dictionary,Dictionary,IBundleActivationManager)public java.lang.String getInterestServiceName()
String)protected java.lang.String[] getOptionalImportedServiceNames()
String[]) 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)
arg0 - 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 getProfileServiceName()
String) value.public java.lang.String getServiceName()
String) value.getInterestServiceName(),
getProfileServiceName()
public void handleAcquiredImportedService(java.lang.String pid,
java.lang.Object object,
java.lang.Object service,
IBundleActivationManager manager)
pid - The PID (String) parameter.object - The object (Object) parameter.service - The service (Object) parameter.manager - The manager (IBundleActivationManager) parameter.
protected void handleAcquiredOptionalImportedService(java.lang.String serviceName,
java.lang.Object service)
serviceName - The service name (String) parameter.service - The service (Object) parameter.handleAcquiredOptionalImportedService(String,Object,String,Object,IBundleActivationManager)
public void handleAcquiredOptionalImportedService(java.lang.String pid,
java.lang.Object object,
java.lang.String importedServiceName,
java.lang.Object importedService,
IBundleActivationManager manager)
pid - 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.handleAcquiredOptionalImportedService(String,Object)
public void handleReleasedImportedService(java.lang.String pid,
java.lang.Object object,
java.lang.Object service,
IBundleActivationManager manager)
pid - The PID (String) parameter.object - The object (Object) parameter.service - The service (Object) parameter.manager - The manager (IBundleActivationManager) parameter.
protected void handleReleasedOptionalImportedService(java.lang.String serviceName,
java.lang.Object service)
serviceName - The service name (String) parameter.service - The service (Object) parameter.handleReleasedOptionalImportedService(String,Object,String,Object,IBundleActivationManager)
public void handleReleasedOptionalImportedService(java.lang.String pid,
java.lang.Object object,
java.lang.String importedServiceName,
java.lang.Object importedService,
IBundleActivationManager manager)
pid - 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.handleReleasedOptionalImportedService(String,Object)
public boolean requiresAllImportedServices(java.lang.String pid,
java.util.Dictionary oldProperties,
java.util.Dictionary properties)
pid - The PID (String) parameter.oldProperties - The old properties (Dictionary) parameter.properties - The properties (Dictionary) parameter.
boolean) value.
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.
public void updateProperties(java.util.Dictionary table,
java.util.Dictionary from)
table - The table (Dictionary) parameter.from - The from (Dictionary) parameter.createProperties()
public void validateConfiguration(java.lang.String pid,
java.util.Dictionary properties)
throws org.osgi.service.cm.ConfigurationException
pid - The PID (String) parameter.properties - The properties (Dictionary) parameter.
org.osgi.service.cm.ConfigurationException - Configuration Exception.
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||