dev.galasa.framework.internal.cts.FrameworkConfidentialTextServiceRegistration Maven / Gradle / Ivy
/*
* Copyright contributors to the Galasa project
*
* SPDX-License-Identifier: EPL-2.0
*/
package dev.galasa.framework.internal.cts;
import javax.validation.constraints.NotNull;
import org.osgi.service.component.annotations.Component;
import dev.galasa.framework.spi.ConfidentialTextException;
import dev.galasa.framework.spi.IConfidentialTextServiceRegistration;
import dev.galasa.framework.spi.IFrameworkInitialisation;
@Component(service = { IConfidentialTextServiceRegistration.class })
public class FrameworkConfidentialTextServiceRegistration implements IConfidentialTextServiceRegistration {
/**
* This method intialises the service with the framework, managers can then
* access this service.
*
* @param frameworkInitialisation - the framework setup.
* @throws ConfidentialTextException
*/
public void initialise(@NotNull IFrameworkInitialisation frameworkInitialisation) throws ConfidentialTextException {
try {
frameworkInitialisation.registerConfidentialTextService(new FrameworkConfidentialTextService());
} catch (ConfidentialTextException e) {
throw e;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy