|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.hammurapi.config.ComponentBase
biz.hammurapi.rules.PojoCollectionManager
public class PojoCollectionManager
Collection manager which holds collections in memory and can use storage to persist state.
Field Summary |
---|
Fields inherited from class biz.hammurapi.config.ComponentBase |
---|
owner |
Constructor Summary | |
---|---|
PojoCollectionManager()
|
Method Summary | |
---|---|
void |
clear()
Clears all collections. |
java.util.Collection |
get(java.lang.String ruleName,
java.lang.String listName,
java.lang.Object monitor)
Retrieves collection from the manager. |
boolean |
isNegatedBy(Negator negator)
Iterates over all collections and removes negated facts. |
void |
setCollectionType(java.lang.Class collectionType)
|
void |
setCollectionType(java.lang.String collectionType)
|
void |
setStorageReference(java.lang.String storageReference)
Path to object storage. |
void |
start()
Starts collection manager. |
void |
stop()
Empty method. |
Methods inherited from class biz.hammurapi.config.ComponentBase |
---|
addMeasurement, get, getChild, getMeasurementConsumer, getOwner, getOwner, setMeasurementConsumer, setOwner |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface biz.hammurapi.config.Component |
---|
setOwner |
Constructor Detail |
---|
public PojoCollectionManager()
Method Detail |
---|
public void setStorageReference(java.lang.String storageReference)
storageReference
- public void start() throws biz.hammurapi.config.ConfigurationException
start
in interface biz.hammurapi.config.Component
biz.hammurapi.config.ConfigurationException
public void stop() throws biz.hammurapi.config.ConfigurationException
stop
in interface biz.hammurapi.config.Component
biz.hammurapi.config.ConfigurationException
public java.util.Collection get(java.lang.String ruleName, java.lang.String listName, java.lang.Object monitor)
CollectionManager
get
in interface CollectionManager
ruleName
- Name of the rule this collection belongs to.listName
- Name of the collection withing the rule.monitor
- Collection monitor for synchronization.
biz.hammurapi.rules.CollectionManager#getList(java.lang.String, java.lang.String)
public void clear()
CollectionManager
clear
in interface CollectionManager
public boolean isNegatedBy(Negator negator)
isNegatedBy
in interface Negatable
negator
negates this instance.public void setCollectionType(java.lang.String collectionType)
public void setCollectionType(java.lang.Class collectionType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |