com.deliveredtechnologies.rulebook.lang.RuleBookBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rulebook-core Show documentation
Show all versions of rulebook-core Show documentation
A simple and intuitive rules abstraction for Java
package com.deliveredtechnologies.rulebook.lang;
import com.deliveredtechnologies.rulebook.model.Auditor;
import com.deliveredtechnologies.rulebook.model.Rule;
import com.deliveredtechnologies.rulebook.model.RuleBook;
import com.deliveredtechnologies.rulebook.model.RuleBookAuditor;
import com.deliveredtechnologies.rulebook.model.rulechain.cor.CoRRuleBook;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.function.Consumer;
/**
* The initial builder used to build a RuleBook.
*/
public class RuleBookBuilder implements TerminatingRuleBookBuilder {
private static Logger LOGGER = LoggerFactory.getLogger(RuleBookBuilder.class);
private RuleBook _ruleBook;
private Class extends RuleBook> _ruleBookClass;
private Class> _resultType = Object.class;
/**
* Returns a new RuleBookBuilder for the default RuleBook type.
* @return a new RuleBookBuilder
*/
public static RuleBookBuilder
© 2015 - 2025 Weber Informatics LLC | Privacy Policy