1.0.0

org.eclipse.soda.dk.testcontroller.config.osgi
Class OSGiTestConfiguration

java.lang.Object
  extended by org.eclipse.soda.dk.testcontroller.config.osgi.OSGiTestConfiguration
All Implemented Interfaces:
TestConfigurationService

public class OSGiTestConfiguration
extends java.lang.Object
implements TestConfigurationService

TestLocator to find test agents from the set of optional services currently acquired by this bundle.

Version:
1.0.0

Constructor Summary
OSGiTestConfiguration()
           
 
Method Summary
 void createFactoryConfiguration(java.lang.String factoryPid, java.lang.String bundleLocation, java.util.Dictionary properties)
          Create factory configuration with the specified factory pid, bundle location and properties parameters.
 void createOrUpdateConfiguration(java.lang.String pid, java.lang.String bundleLocation, java.util.Dictionary properties)
          Create or update configuration with the specified pid, bundle location and properties parameters.
 void deleteConfigurations(java.lang.String filter)
          Delete configurations with the specified filter parameter.
 TestAgentService[] findTests(java.lang.String filter, java.lang.String className)
          Find tests with the specified filter and class name parameters and return the TestAgentService[] result.
 void setConfigurationAdmin(ConfigurationAdmin configurationAdmin)
          the configurationAdmin to set
 void setNotificationService(NotificationService notificationService)
          Sets the notification service value.
 void setServiceDetecter(IServiceDetecter serviceDetecter)
          the serviceDetecter to set
 void updateConfigurations(java.lang.String filter, java.util.Dictionary properties)
          Update configurations with the specified filter and properties parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiTestConfiguration

public OSGiTestConfiguration()
Method Detail

createFactoryConfiguration

public void createFactoryConfiguration(java.lang.String factoryPid,
                                       java.lang.String bundleLocation,
                                       java.util.Dictionary properties)
                                throws java.io.IOException
Create factory configuration with the specified factory pid, bundle location and properties parameters.

Specified by:
createFactoryConfiguration in interface TestConfigurationService
Parameters:
factoryPid - The factory pid (String) parameter.
bundleLocation - The bundle location (String) parameter.
properties - The properties (Dictionary) parameter.
Throws:
java.io.IOException

createOrUpdateConfiguration

public void createOrUpdateConfiguration(java.lang.String pid,
                                        java.lang.String bundleLocation,
                                        java.util.Dictionary properties)
                                 throws java.io.IOException
Create or update configuration with the specified pid, bundle location and properties parameters.

Specified by:
createOrUpdateConfiguration in interface TestConfigurationService
Parameters:
pid - The pid (String) parameter.
bundleLocation - The bundle location (String) parameter.
properties - The properties (Dictionary) parameter.
Throws:
java.io.IOException

deleteConfigurations

public void deleteConfigurations(java.lang.String filter)
                          throws java.io.IOException,
                                 InvalidSyntaxException
Delete configurations with the specified filter parameter.

Specified by:
deleteConfigurations in interface TestConfigurationService
Parameters:
filter - The filter (String) parameter.
Throws:
InvalidSyntaxException - Invalid Syntax Exception.
java.io.IOException
See Also:
updateConfigurations(String,Dictionary)

findTests

public TestAgentService[] findTests(java.lang.String filter,
                                    java.lang.String className)
                             throws InvalidSyntaxException
Find tests with the specified filter and class name parameters and return the TestAgentService[] result.

Specified by:
findTests in interface TestConfigurationService
Parameters:
filter - The filter (String) parameter.
className - The class name (String) parameter.
Returns:
Results of the find tests (TestAgentService[]) value.
Throws:
InvalidSyntaxException - Invalid Syntax Exception.

setConfigurationAdmin

public void setConfigurationAdmin(ConfigurationAdmin configurationAdmin)
the configurationAdmin to set

Parameters:
configurationAdmin - The configuration admin (ConfigurationAdmin) parameter.

setNotificationService

public void setNotificationService(NotificationService notificationService)
Sets the notification service value.

Specified by:
setNotificationService in interface TestConfigurationService
Parameters:
notificationService - The notification service (NotificationService) parameter.

setServiceDetecter

public void setServiceDetecter(IServiceDetecter serviceDetecter)
the serviceDetecter to set

Parameters:
serviceDetecter - The service detecter (IServiceDetecter) parameter.

updateConfigurations

public void updateConfigurations(java.lang.String filter,
                                 java.util.Dictionary properties)
                          throws java.io.IOException,
                                 InvalidSyntaxException
Update configurations with the specified filter and properties parameters.

Specified by:
updateConfigurations in interface TestConfigurationService
Parameters:
filter - The filter (String) parameter.
properties - The properties (Dictionary) parameter.
Throws:
InvalidSyntaxException - Invalid Syntax Exception.
java.io.IOException
See Also:
deleteConfigurations(String)

1.0.0

Copyright (c) 2007 IBM