Package org.drools.template
Class ObjectDataCompiler
java.lang.Object
org.drools.template.DataProviderCompiler
org.drools.template.ObjectDataCompiler
This class provides additional methods for invoking the template
compiler, taking the actual parameters from maps or objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile(Collection<?> objs, InputStream templateStream) Compile templates, substituting from a collection of maps or objects into the given template.compile(Collection<?> objs, String template) Compile templates, substituting from a collection of maps or objects into the given template.Methods inherited from class org.drools.template.DataProviderCompiler
closeStream, compile, compile, compile, compile, compile, compile, newCell
-
Constructor Details
-
ObjectDataCompiler
public ObjectDataCompiler()
-
-
Method Details
-
compile
Compile templates, substituting from a collection of maps or objects into the given template.- Parameters:
objs- the collection of maps or objectstemplate- the template resource pathname- Returns:
- the expanded rules as a string
-
compile
Compile templates, substituting from a collection of maps or objects into the given template.- Parameters:
objs- objs the collection of maps or objectstemplateStream- the template as a stream- Returns:
- the expanded rules as a string
-