use of org.jboss.galleon.spec.ConfigLayerSpec in project galleon by wildfly.
the class XmlParsers method parseConfigLayerSpec.
public static ConfigLayerSpec parseConfigLayerSpec(Reader reader, String model) throws ProvisioningException {
ConfigLayerSpec.Builder builder = ConfigLayerSpec.builder();
builder.setModel(model);
try {
parse(reader, builder);
} catch (XMLStreamException e) {
throw new ProvisioningException("Failed to parse config layer spec", e);
}
return builder.build();
}
Aggregations