Search in sources :

Example 6 with ConfigLayerSpec

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();
}
Also used : XMLStreamException(javax.xml.stream.XMLStreamException) ProvisioningException(org.jboss.galleon.ProvisioningException) ConfigLayerSpec(org.jboss.galleon.spec.ConfigLayerSpec)

Aggregations

ConfigLayerSpec (org.jboss.galleon.spec.ConfigLayerSpec)6 ProvisioningException (org.jboss.galleon.ProvisioningException)3 Path (java.nio.file.Path)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 ConfigId (org.jboss.galleon.config.ConfigId)2 ConfigLayerDependency (org.jboss.galleon.spec.ConfigLayerDependency)2 IOException (java.io.IOException)1 HashSet (java.util.HashSet)1 Set (java.util.Set)1 TreeSet (java.util.TreeSet)1 XMLStreamException (javax.xml.stream.XMLStreamException)1 ProvisioningDescriptionException (org.jboss.galleon.ProvisioningDescriptionException)1 ConfigModel (org.jboss.galleon.config.ConfigModel)1 FeatureGroup (org.jboss.galleon.config.FeatureGroup)1 FeatureGroupSupport (org.jboss.galleon.config.FeatureGroupSupport)1 FeaturePackConfig (org.jboss.galleon.config.FeaturePackConfig)1 FeaturePackLayout (org.jboss.galleon.layout.FeaturePackLayout)1 FeaturePackSpec (org.jboss.galleon.spec.FeaturePackSpec)1 FeatureSpec (org.jboss.galleon.spec.FeatureSpec)1