|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.RuleBaseConfiguration
public class RuleBaseConfiguration
RuleBaseConfiguration A class to store RuleBase related configuration. It must be used at rule base instantiation time or not used at all. This class will automatically load default values from system properties, so if you want to set a default configuration value for all your new rule bases, you can simply set the property as a System property. After RuleBase is created, it makes the configuration immutable and there is no way to make it mutable again. This is to avoid inconsistent behavior inside rulebase. NOTE: This API is under review and may change in the future. Created: 16/05/2006
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_ASSERT_BEHAVIOR
Property to define working memory assert behavior. |
static java.lang.String |
PROPERTY_HASH_ALPHA_NODES
Property to enable/disable alpha node hashing inside alpha nodes Defaults to false |
static java.lang.String |
PROPERTY_HASH_OBJECT_TYPE_NODES
Property to enable/disable alpha node hashing inside object type nodes Defaults to true |
static java.lang.String |
PROPERTY_INDEX_LEFT_BETA_MEMORY
Property to enable/disable left beta memory indexing Defaults to false |
static java.lang.String |
PROPERTY_INDEX_RIGHT_BETA_MEMORY
Property to enable/disable right beta memory indexing Defaults to true |
static java.lang.String |
PROPERTY_LOGICAL_OVERRIDE_BEHAVIOR
|
static java.lang.String |
WM_BEHAVIOR_DISCARD
|
static java.lang.String |
WM_BEHAVIOR_EQUALITY
|
static java.lang.String |
WM_BEHAVIOR_IDENTITY
|
static java.lang.String |
WM_BEHAVIOR_PRESERVE
|
Constructor Summary | |
---|---|
RuleBaseConfiguration()
|
Method Summary | |
---|---|
boolean |
getBooleanProperty(java.lang.String prop)
Convenience method that calls get() method and returns a boolean for the given property. |
java.lang.String |
getProperty(java.lang.String prop)
Returns the current value for the given property or null if it is not set |
boolean |
isImmutable()
Returns true if this configuration object is immutable or false otherwise. |
void |
makeImmutable()
Makes the configuration object immutable. |
void |
setProperty(java.lang.String prop,
java.lang.String value)
Sets the value of the given property |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_INDEX_LEFT_BETA_MEMORY
public static final java.lang.String PROPERTY_INDEX_RIGHT_BETA_MEMORY
public static final java.lang.String PROPERTY_HASH_OBJECT_TYPE_NODES
public static final java.lang.String PROPERTY_HASH_ALPHA_NODES
public static final java.lang.String PROPERTY_ASSERT_BEHAVIOR
public static final java.lang.String PROPERTY_LOGICAL_OVERRIDE_BEHAVIOR
public static final java.lang.String WM_BEHAVIOR_IDENTITY
public static final java.lang.String WM_BEHAVIOR_EQUALITY
public static final java.lang.String WM_BEHAVIOR_PRESERVE
public static final java.lang.String WM_BEHAVIOR_DISCARD
Constructor Detail |
---|
public RuleBaseConfiguration()
Method Detail |
---|
public java.lang.String getProperty(java.lang.String prop)
prop
-
public boolean getBooleanProperty(java.lang.String prop)
prop
-
public void setProperty(java.lang.String prop, java.lang.String value)
prop
- value
- public void makeImmutable()
public boolean isImmutable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |