org.fiirs.drools.knowledge.packager.KnowledgeEntryBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of drools-knowledge-packager Show documentation
Show all versions of drools-knowledge-packager Show documentation
This is a Maven plugin that will JBoss Drools 5.2 knowledge files and compile them to a Drools PKG file
package org.fiirs.drools.knowledge.packager;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class KnowledgeEntryBuilder {
public static String WILD_CARD_PATTERN = "(\\*\\*)|(\\*)";
private List jarFiles;
private List patternStrings;
public KnowledgeEntryBuilder() {
jarFiles = new ArrayList();
patternStrings = new ArrayList();
}
public KnowledgeEntryBuilder addJar(String jarFile) {
jarFiles.add(jarFile);
return this;
}
public KnowledgeEntryBuilder addPatternStr(String patternString) {
patternStrings.add(patternString);
return this;
}
public List getJarFiles() {
return jarFiles;
}
public List getPatternStrings() {
return patternStrings;
}
public KnowledgeEntries build() throws IOException {
return new KnowledgeEntries(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy