Search in sources :

Example 6 with ResourceConfiguration

use of org.kie.api.io.ResourceConfiguration in project drools by kiegroup.

the class DecisionTableConfigurationHandler method end.

public Object end(String uri, String localName, ExtensibleXmlParser parser) throws SAXException {
    final Element element = parser.endElementBuilder();
    final InternalResource resource = (InternalResource) parser.getParent();
    ResourceConfiguration dtConf = (ResourceConfiguration) parser.getCurrent();
    resource.setConfiguration(dtConf);
    return dtConf;
}
Also used : InternalResource(org.drools.core.io.internal.InternalResource) Element(org.w3c.dom.Element) ResourceConfiguration(org.kie.api.io.ResourceConfiguration)

Aggregations

ResourceConfiguration (org.kie.api.io.ResourceConfiguration)6 IOException (java.io.IOException)2 Properties (java.util.Properties)2 Resource (org.kie.api.io.Resource)2 ByteArrayInputStream (java.io.ByteArrayInputStream)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 ResourceConfigurationImpl (org.drools.core.builder.conf.impl.ResourceConfigurationImpl)1 BaseResource (org.drools.core.io.impl.BaseResource)1 InternalResource (org.drools.core.io.internal.InternalResource)1 RuleTemplateModel (org.kie.api.builder.model.RuleTemplateModel)1 ResourceType (org.kie.api.io.ResourceType)1 DecisionTableConfiguration (org.kie.internal.builder.DecisionTableConfiguration)1 Element (org.w3c.dom.Element)1