dev.galasa.cicsts.internal.properties.ExtraBundles Maven / Gradle / Ivy
/*
* Licensed Materials - Property of IBM
*
* (c) Copyright IBM Corp. 2020-2021.
*/
package dev.galasa.cicsts.internal.properties;
import java.util.ArrayList;
import java.util.List;
import dev.galasa.cicsts.CicstsManagerException;
import dev.galasa.framework.spi.ConfigurationPropertyStoreException;
import dev.galasa.framework.spi.cps.CpsProperties;
/**
* Extra bundles required to implement the CICS TS Manager
*
* @galasa.cps.property
*
* @galasa.name cicsts.extra.bundles
*
* @galasa.description The symbolic names of any bundles that need to be loaded
* with the CICS TS Manager
*
* @galasa.required No
*
* @galasa.default dev.galasa.cicsts.ceci.manager,dev.galasa.cicsts.ceda.manager,dev.galasa.cicsts.cemt.manager
*
* @galasa.valid_values bundle symbolic names comma separated
*
* @galasa.examples cicsts.extra.bundles=org.example.cicsts.provisioning
*
*/
public class ExtraBundles extends CpsProperties {
public static List get() throws CicstsManagerException {
try {
List list = getStringList(CicstsPropertiesSingleton.cps(), "extra", "bundles");
if (list.isEmpty()) {
list = new ArrayList<>(3);
list.add("dev.galasa.cicsts.ceci.manager");
list.add("dev.galasa.cicsts.ceda.manager");
list.add("dev.galasa.cicsts.cemt.manager");
list.add("dev.galasa.cicsts.resource.manager");
list.add("dev.galasa.zosliberty.manager");
list.add("dev.galasa.textscan.manager");
} else if (list.size() == 1) {
if (list.get(0).equalsIgnoreCase("none")) {
return new ArrayList<>(0);
}
}
return list;
} catch (ConfigurationPropertyStoreException e) {
throw new CicstsManagerException("Problem asking CPS for the CICS TS extra bundles", e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy