use of org.jboss.galleon.config.FeatureGroupSupport in project galleon by wildfly.
the class ProvisioningRuntimeBuilder method popLayer.
private FeatureGroupSupport popLayer(ConfigModelStack layerStack) throws ProvisioningException {
final FeatureGroupSupport fg = layerStack.peekAtGroup();
if (!(fg instanceof ConfigLayerSpec)) {
throw new ProvisioningException("Expected config layer but got " + fg);
}
final ConfigLayerSpec layer = (ConfigLayerSpec) fg;
if (layer.hasLayerDeps()) {
for (ConfigLayerDependency dep : layer.getLayerDeps()) {
layerStack.addLayerDep(dep);
}
}
layerStack.popGroup();
return fg;
}
use of org.jboss.galleon.config.FeatureGroupSupport in project galleon by wildfly.
the class ProvisioningRuntimeBuilder method processFeatureGroup.
private void processFeatureGroup(FeatureGroupSupport includedFg) throws ProvisioningException {
final boolean pushed = configStack.pushGroup(includedFg);
final FeaturePackRuntimeBuilder originalOrigin = currentOrigin;
try {
final FeatureGroupSupport originalFg = getFeatureGroupSpec(includedFg.getName());
if (originalFg.hasPackageDeps()) {
processPackageDeps(originalFg, null);
}
if (!pushed) {
return;
}
processConfigItemContainer(originalFg);
} finally {
currentOrigin = originalOrigin;
}
configStack.popGroup();
if (includedFg.hasItems()) {
processConfigItemContainer(includedFg);
}
}
Aggregations