Search in sources :

Example 1 with ChainAdapterFactory

use of org.walkmod.ChainAdapterFactory in project walkmod-core by walkmod.

the class ConfigurationImpl method execute.

@Override
public void execute(String userDir, Options options, String... chains) {
    ChainAdapterFactory apf = new DefaultChainAdapterFactory();
    Summary.getInstance().clear();
    Collection<ChainConfig> chainCfgs = getChainConfigs();
    if (chainCfgs != null && !chainCfgs.isEmpty()) {
        if (chains == null || chains.length == 0) {
            executeAllChains(options, apf);
        } else {
            for (String chain : chains) {
                executeChain(userDir, options, apf, chain);
            }
        }
    }
}
Also used : DefaultChainAdapterFactory(org.walkmod.impl.DefaultChainAdapterFactory) DefaultChainAdapterFactory(org.walkmod.impl.DefaultChainAdapterFactory) ChainAdapterFactory(org.walkmod.ChainAdapterFactory) ChainConfig(org.walkmod.conf.entities.ChainConfig)

Aggregations

ChainAdapterFactory (org.walkmod.ChainAdapterFactory)1 ChainConfig (org.walkmod.conf.entities.ChainConfig)1 DefaultChainAdapterFactory (org.walkmod.impl.DefaultChainAdapterFactory)1