org.drools
Class SimpleRepository

java.lang.Object
  |
  +--org.drools.SimpleRepository
All Implemented Interfaces:
RuleBaseRepository

public class SimpleRepository
extends java.lang.Object
implements RuleBaseRepository

Simple in-memory RuleBaseRepository.

Author:
bob mcwhirter
See Also:
RuleBaseRepository, RuleBase

Constructor Summary
SimpleRepository()
          Construct.
 
Method Summary
 RuleBase lookupRuleBase(java.lang.String uri)
          Retrieve a RuleBase by URI.
 void registerRuleBase(java.lang.String uri, RuleBase ruleBase)
          Register a RuleBase with a URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRepository

public SimpleRepository()
Construct.
Method Detail

registerRuleBase

public void registerRuleBase(java.lang.String uri,
                             RuleBase ruleBase)
Register a RuleBase with a URI.
Specified by:
registerRuleBase in interface RuleBaseRepository
Parameters:
uri - The URI key.
ruleBase - The RuleBase to register.

lookupRuleBase

public RuleBase lookupRuleBase(java.lang.String uri)
                        throws NoSuchRuleBaseException
Retrieve a RuleBase by URI.
Specified by:
lookupRuleBase in interface RuleBaseRepository
Parameters:
uri - The identifying URI of the RuleBase.
Returns:
The located RuleBase.
Throws:
NoSuchRuleBaseException - If no RuleBase can be located.


Copyright © 2001-2003 The Werken Company. All Rights Reserved.