Package dev.galasa.framework
Class FrameworkInitialisation
java.lang.Object
dev.galasa.framework.FrameworkInitialisation
- All Implemented Interfaces:
IFrameworkInitialisation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties) FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties, boolean isTestRun) Deprecated, for removal: This API element is subject to removal in a future version.Use one of the other constructors.FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties, boolean isTestRun, org.apache.commons.logging.Log initLogger) Deprecated, for removal: This API element is subject to removal in a future version.Use one of the other constructors.FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties, boolean isTestRun, org.apache.commons.logging.Log initLogger, org.osgi.framework.BundleContext bundleContext, IFileSystem fileSystem, Environment env) Deprecated, for removal: This API element is subject to removal in a future version.Use one of the other constructors.FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties, IFrameworkInitialisationStrategy initStrategy) FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties, org.apache.commons.logging.Log initLogger, org.osgi.framework.BundleContext bundleContext, IFileSystem fileSystem, Environment env, IFrameworkInitialisationStrategy initStrategy) -
Method Summary
Modifier and TypeMethodDescription@NotNull URIRetrieves the Configuration Property Store that was set in the bootstrap@NotNull IFrameworkRetrieve 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 IShuttableFrameworkvoidregisterCertificateStoreService(@NotNull ICertificateStoreService certificateStoreService) Register a Certificate Store Service.voidregisterConfidentialTextService(@NotNull IConfidentialTextService confidentialTextService) voidregisterConfigurationPropertyStore(@NotNull IConfigurationPropertyStore configurationPropertyStore) Register the active Configuration Property StoreService.voidregisterCredentialsStore(@NotNull ICredentialsStore credentialsStore) voidregisterDynamicStatusStore(@NotNull IDynamicStatusStore dynamicStatusStore) voidregisterEventsService(@NotNull IEventsService eventsService) voidregisterResultArchiveStoreService(@NotNull IResultArchiveStoreService resultArchiveStoreService) Register a Result Archive Store Service.void
-
Field Details
-
framework
-
-
Constructor Details
-
FrameworkInitialisation
public FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties) throws URISyntaxException, org.osgi.framework.InvalidSyntaxException, FrameworkException - Throws:
URISyntaxExceptionorg.osgi.framework.InvalidSyntaxExceptionFrameworkException
-
FrameworkInitialisation
@Deprecated(since="0.40.0", forRemoval=true) public FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties, boolean isTestRun) throws URISyntaxException, org.osgi.framework.InvalidSyntaxException, FrameworkException Deprecated, for removal: This API element is subject to removal in a future version.Use one of the other constructors.- Throws:
URISyntaxExceptionorg.osgi.framework.InvalidSyntaxExceptionFrameworkException
-
FrameworkInitialisation
public FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties, IFrameworkInitialisationStrategy initStrategy) throws URISyntaxException, org.osgi.framework.InvalidSyntaxException, FrameworkException - Throws:
URISyntaxExceptionorg.osgi.framework.InvalidSyntaxExceptionFrameworkException
-
FrameworkInitialisation
@Deprecated(since="0.40.0", forRemoval=true) public FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties, boolean isTestRun, org.apache.commons.logging.Log initLogger) throws URISyntaxException, org.osgi.framework.InvalidSyntaxException, FrameworkException Deprecated, for removal: This API element is subject to removal in a future version.Use one of the other constructors.- Throws:
URISyntaxExceptionorg.osgi.framework.InvalidSyntaxExceptionFrameworkException
-
FrameworkInitialisation
@Deprecated(since="0.40.0", forRemoval=true) public FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties, boolean isTestRun, org.apache.commons.logging.Log initLogger, org.osgi.framework.BundleContext bundleContext, IFileSystem fileSystem, Environment env) throws URISyntaxException, org.osgi.framework.InvalidSyntaxException, FrameworkException Deprecated, for removal: This API element is subject to removal in a future version.Use one of the other constructors.- Throws:
URISyntaxExceptionorg.osgi.framework.InvalidSyntaxExceptionFrameworkException
-
FrameworkInitialisation
public FrameworkInitialisation(Properties bootstrapProperties, Properties overrideProperties, org.apache.commons.logging.Log initLogger, org.osgi.framework.BundleContext bundleContext, IFileSystem fileSystem, Environment env, IFrameworkInitialisationStrategy initStrategy) throws URISyntaxException, org.osgi.framework.InvalidSyntaxException, FrameworkException - Parameters:
bootstrapProperties-overrideProperties-initLogger-bundleContext-fileSystem-env-initStrategy- One of the initialisation strategies, depending on what you want to use the Framework for. See `GalasaFactory.getInstance().newDefaultInitStrategy()` or one of the other `newXXXStrategy` methods.- Throws:
URISyntaxExceptionorg.osgi.framework.InvalidSyntaxExceptionFrameworkException
-
-
Method Details
-
getGalasaHome
Obtain the location of the galasa home directory- Returns:
- a String representing the location of the users Galasa home directory
-
getBootstrapConfigurationPropertyStore
Description copied from interface:IFrameworkInitialisationRetrieves the Configuration Property Store that was set in the bootstrap- Specified by:
getBootstrapConfigurationPropertyStorein interfaceIFrameworkInitialisation- Returns:
URI
-
getDynamicStatusStoreUri
- Specified by:
getDynamicStatusStoreUriin interfaceIFrameworkInitialisation
-
getCredentialsStoreUri
- Specified by:
getCredentialsStoreUriin interfaceIFrameworkInitialisation
-
getResultArchiveStoreUris
Description copied from interface:IFrameworkInitialisationRetrieves a list of Result Archive URIs that need to be initialised- Specified by:
getResultArchiveStoreUrisin 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:IFrameworkInitialisationRegister 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,
ConfigurationPropertyStoreExceptionwill be thrown.- Specified by:
registerConfigurationPropertyStorein 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:
registerDynamicStatusStorein interfaceIFrameworkInitialisation- Throws:
DynamicStatusStoreException
-
registerResultArchiveStoreService
public void registerResultArchiveStoreService(@NotNull @NotNull IResultArchiveStoreService resultArchiveStoreService) throws ResultArchiveStoreException Description copied from interface:IFrameworkInitialisationRegister 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:
registerResultArchiveStoreServicein 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:
registerConfidentialTextServicein interfaceIFrameworkInitialisation- Throws:
ConfidentialTextException
-
registerCredentialsStore
public void registerCredentialsStore(@NotNull @NotNull ICredentialsStore credentialsStore) throws CredentialsException - Specified by:
registerCredentialsStorein interfaceIFrameworkInitialisation- Throws:
CredentialsException
-
registerEventsService
public void registerEventsService(@NotNull @NotNull IEventsService eventsService) throws EventsException - Specified by:
registerEventsServicein interfaceIFrameworkInitialisation- Throws:
EventsException
-
getFramework
Description copied from interface:IFrameworkInitialisationRetrieve 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:
getFrameworkin interfaceIFrameworkInitialisation- Returns:
IFramework
-
getShutableFramework
-
shutdownFramework
public void shutdownFramework() -
registerCertificateStoreService
public void registerCertificateStoreService(@NotNull @NotNull ICertificateStoreService certificateStoreService) throws CertificateStoreException Description copied from interface:IFrameworkInitialisationRegister a Certificate Store Service.
- Specified by:
registerCertificateStoreServicein interfaceIFrameworkInitialisation- Parameters:
certificateStoreService- - the certificate store service to be registered- Throws:
CertificateStoreException- If there is a problem registering the service
-