01: package org.drools.agent;
02:
03: import java.util.Properties;
04:
05: import org.drools.RuleBase;
06:
07: public class RuleBaseAgentCache {
08:
09: private static final RuleBaseAgentCache INSTANCE = new RuleBaseAgentCache();
10:
11: private RuleBaseAgentCache() {
12: }
13:
14: public static RuleBaseAgentCache instance() {
15: return INSTANCE;
16: }
17:
18: /**
19: * Return a rulebase by name.
20: * This name may be the name of a pre configured rulebase,
21: * or the name of a config properties file to be found
22: * on the classpath.
23: */
24: public RuleBase getRuleBase(String name) {
25: throw new UnsupportedOperationException("Not done yet !");
26: }
27:
28: /**
29: * Pass in a pre populated properties file.
30: * It will then map this config to the given name for future use.
31: * @return A RuleBase ready to go.
32: */
33: public RuleBase configureRuleBase(String name, Properties props) {
34: return null;
35: }
36:
37: }
|