All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.galasa.zos3270.internal.properties.ExtraBundles Maven / Gradle / Ivy

The newest version!
/*
 * Copyright contributors to the Galasa project
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package dev.galasa.zos3270.internal.properties;

import java.util.ArrayList;
import java.util.List;

import dev.galasa.framework.spi.ConfigurationPropertyStoreException;
import dev.galasa.framework.spi.cps.CpsProperties;
import dev.galasa.zos3270.Zos3270ManagerException;

/**
 * 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 Zos3270ManagerException { try { List list = getStringList(Zos3270PropertiesSingleton.cps(), "extra", "bundles"); if (list.isEmpty()) { list = new ArrayList<>(3); 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 Zos3270ManagerException("Problem asking CPS for the CICS TS extra bundles", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy