use of org.jboss.galleon.config.ConfigId in project galleon by wildfly.
the class TestConfigsPersistingPlugin method postInstall.
@Override
public void postInstall(ProvisioningRuntime runtime) throws ProvisioningException {
final Path configsDir = runtime.getStagedDir().resolve(Constants.CONFIGS);
for (ProvisionedConfig config : runtime.getConfigs()) {
Path configPath = configsDir;
if (config.getModel() != null) {
configPath = configPath.resolve(config.getModel());
}
configPath = configPath.resolve(config.getName());
try {
ProvisionedConfigXmlWriter.getInstance().write(config, configPath);
} catch (Exception e) {
throw new ProvisioningException("Failed to persist config " + new ConfigId(config.getModel(), config.getName()), e);
}
}
}
use of org.jboss.galleon.config.ConfigId in project galleon by wildfly.
the class State method excludeLayersConfiguration.
public void excludeLayersConfiguration(PmSession pmSession, ConfigInfo configuration, String[] layers) throws ProvisioningException, IOException {
ConfigId id = new ConfigId(configuration.getModel(), configuration.getName());
Action action = configProvisioning.excludeLayersConfiguration(id, layers, this);
config = pushState(action, pmSession);
}
use of org.jboss.galleon.config.ConfigId in project galleon by wildfly.
the class State method removeFeature.
public void removeFeature(PmSession pmSession, ConfigInfo ci, FeatureInfo fi) throws ProvisioningException, IOException {
ConfigId id = new ConfigId(ci.getModel(), ci.getName());
Action action = configProvisioning.removeFeature(id, fi);
config = pushState(action, pmSession);
}
use of org.jboss.galleon.config.ConfigId in project galleon by wildfly.
the class State method removeIncludedLayersConfiguration.
public void removeIncludedLayersConfiguration(PmSession pmSession, ConfigInfo configuration, String[] layers) throws ProvisioningException, IOException {
ConfigId id = new ConfigId(configuration.getModel(), configuration.getName());
Action action = configProvisioning.removeIncludedLayersConfiguration(id, layers);
config = pushState(action, pmSession);
}
use of org.jboss.galleon.config.ConfigId in project galleon by wildfly.
the class State method includeLayersConfiguration.
public void includeLayersConfiguration(PmSession pmSession, ConfigInfo configuration, String[] layers) throws ProvisioningException, IOException {
ConfigId id = new ConfigId(configuration.getModel(), configuration.getName());
Action action = configProvisioning.includeLayersConfiguration(id, layers, this);
config = pushState(action, pmSession);
}
Aggregations