Package dev.galasa.framework
Class FrameworkInitialisation
java.lang.Object
dev.galasa.framework.FrameworkInitialisation
- All Implemented Interfaces:
IFrameworkInitialisation
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFrameworkInitialisation
(Properties bootstrapProperties, Properties overrideProperties) FrameworkInitialisation
(Properties bootstrapProperties, Properties overrideProperties, boolean testrun) FrameworkInitialisation
(Properties bootstrapProperties, Properties overrideProperties, boolean testrun, org.apache.commons.logging.Log initLogger) FrameworkInitialisation
(Properties bootstrapProperties, Properties overrideProperties, boolean testrun, org.apache.commons.logging.Log initLogger, org.osgi.framework.BundleContext bundleContext, IFileSystem fileSystem, Environment env) -
Method Summary
Modifier and TypeMethodDescription@NotNull URI
Retrieves the Configuration Property Store that was set in the bootstrap@NotNull IFramework
Retrieve the IFramework object.getGalasaHome
(Environment env) Obtain the location of the galasa home directoryRetrieves a list of Result Archive URIs that need to be initialised@NotNull IShuttableFramework
void
registerCertificateStoreService
(@NotNull ICertificateStoreService certificateStoreService) Register a Certificate Store Service.void
registerConfidentialTextService
(@NotNull IConfidentialTextService confidentialTextService) void
registerConfigurationPropertyStore
(@NotNull IConfigurationPropertyStore configurationPropertyStore) Register the active Configuration Property StoreService.void
registerCredentialsStore
(@NotNull ICredentialsStore credentialsStore) void
registerDynamicStatusStore
(@NotNull IDynamicStatusStore dynamicStatusStore) void
registerEventsService
(@NotNull IEventsService eventsService) void
registerResultArchiveStoreService
(@NotNull IResultArchiveStoreService resultArchiveStoreService) Register a Result Archive Store Service.void
protected String
Submit the run and return the run name.
-
Field Details
-
framework
-
-
Constructor Details
-
FrameworkInitialisation
public FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties) throws URISyntaxException, org.osgi.framework.InvalidSyntaxException, FrameworkException - Throws:
URISyntaxException
org.osgi.framework.InvalidSyntaxException
FrameworkException
-
FrameworkInitialisation
public FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties, boolean testrun) throws URISyntaxException, org.osgi.framework.InvalidSyntaxException, FrameworkException - Throws:
URISyntaxException
org.osgi.framework.InvalidSyntaxException
FrameworkException
-
FrameworkInitialisation
public FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties, boolean testrun, org.apache.commons.logging.Log initLogger) throws URISyntaxException, org.osgi.framework.InvalidSyntaxException, FrameworkException - Throws:
URISyntaxException
org.osgi.framework.InvalidSyntaxException
FrameworkException
-
FrameworkInitialisation
public FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties, boolean testrun, org.apache.commons.logging.Log initLogger, org.osgi.framework.BundleContext bundleContext, IFileSystem fileSystem, Environment env) throws URISyntaxException, org.osgi.framework.InvalidSyntaxException, FrameworkException - Throws:
URISyntaxException
org.osgi.framework.InvalidSyntaxException
FrameworkException
-
-
Method Details
-
getGalasaHome
Obtain the location of the galasa home directory- Returns:
- a String representing the location of the users Galasa home directory
-
submitRun
Submit the run and return the run name.- Parameters:
runBundleClass
-language
-- Returns:
- The name of the run created.
- Throws:
FrameworkException
-
getBootstrapConfigurationPropertyStore
Description copied from interface:IFrameworkInitialisation
Retrieves the Configuration Property Store that was set in the bootstrap- Specified by:
getBootstrapConfigurationPropertyStore
in interfaceIFrameworkInitialisation
- Returns:
URI
-
getDynamicStatusStoreUri
- Specified by:
getDynamicStatusStoreUri
in interfaceIFrameworkInitialisation
-
getCredentialsStoreUri
- Specified by:
getCredentialsStoreUri
in interfaceIFrameworkInitialisation
-
getResultArchiveStoreUris
Description copied from interface:IFrameworkInitialisation
Retrieves a list of Result Archive URIs that need to be initialised- Specified by:
getResultArchiveStoreUris
in interfaceIFrameworkInitialisation
- Returns:
- A list of URIs describing the RASs to be activated
-
registerConfigurationPropertyStore
public void registerConfigurationPropertyStore(@NotNull @NotNull IConfigurationPropertyStore configurationPropertyStore) throws ConfigurationPropertyStoreException Description copied from interface:IFrameworkInitialisation
Register the active Configuration Property StoreService. This can only be called once per test run or service instance and will be one of the very first things done during initialisation. If a second CPS attempts register itself,
ConfigurationPropertyStoreException
will be thrown.- Specified by:
registerConfigurationPropertyStore
in interfaceIFrameworkInitialisation
- Parameters:
configurationPropertyStore
- - the configuration property store service chosen to be active- Throws:
ConfigurationPropertyStoreException
- - Only if a 2nd attempt to register a CPS was performed
-
registerDynamicStatusStore
public void registerDynamicStatusStore(@NotNull @NotNull IDynamicStatusStore dynamicStatusStore) throws DynamicStatusStoreException - Specified by:
registerDynamicStatusStore
in interfaceIFrameworkInitialisation
- Throws:
DynamicStatusStoreException
-
registerResultArchiveStoreService
public void registerResultArchiveStoreService(@NotNull @NotNull IResultArchiveStoreService resultArchiveStoreService) throws ResultArchiveStoreException Description copied from interface:IFrameworkInitialisation
Register a Result Archive Store Service. Multiple Result Archive stores can be registered per test run or service instance and will be one of the first things done during initialisation.
- Specified by:
registerResultArchiveStoreService
in interfaceIFrameworkInitialisation
- Parameters:
resultArchiveStoreService
- - the result archive store service to be registered- Throws:
ResultArchiveStoreException
- If there is a problem registering the service
-
registerConfidentialTextService
public void registerConfidentialTextService(@NotNull @NotNull IConfidentialTextService confidentialTextService) throws ConfidentialTextException - Specified by:
registerConfidentialTextService
in interfaceIFrameworkInitialisation
- Throws:
ConfidentialTextException
-
registerCredentialsStore
public void registerCredentialsStore(@NotNull @NotNull ICredentialsStore credentialsStore) throws CredentialsException - Specified by:
registerCredentialsStore
in interfaceIFrameworkInitialisation
- Throws:
CredentialsException
-
registerEventsService
public void registerEventsService(@NotNull @NotNull IEventsService eventsService) throws EventsException - Specified by:
registerEventsService
in interfaceIFrameworkInitialisation
- Throws:
EventsException
-
getFramework
Description copied from interface:IFrameworkInitialisation
Retrieve the IFramework object. Not all the methods will be valid during the initialisation period. Review the Framework Lifecycle to determine when parts of the Framework is initialised
- Specified by:
getFramework
in interfaceIFrameworkInitialisation
- Returns:
IFramework
-
getShutableFramework
-
shutdownFramework
public void shutdownFramework() -
registerCertificateStoreService
public void registerCertificateStoreService(@NotNull @NotNull ICertificateStoreService certificateStoreService) throws CertificateStoreException Description copied from interface:IFrameworkInitialisation
Register a Certificate Store Service.
- Specified by:
registerCertificateStoreService
in interfaceIFrameworkInitialisation
- Parameters:
certificateStoreService
- - the certificate store service to be registered- Throws:
CertificateStoreException
- If there is a problem registering the service
-