biz.hammurapi.rules
Interface CollectionManager

All Superinterfaces:
Negatable
All Known Implementing Classes:
PojoCollectionManager

public interface CollectionManager
extends Negatable

Implementations manage collections for rules. Rules itself shall not maintain collections of facts and objects, but use CollectionManager.

Version:
${Revision}
Author:
Pavel Vlasov

Method Summary
 void clear()
          Clears all collections.
 java.util.Collection get(java.lang.String ruleName, java.lang.String collectionName, java.lang.Object lock)
          Retrieves collection from the manager.
 
Methods inherited from interface biz.hammurapi.rules.Negatable
isNegatedBy
 

Method Detail

get

java.util.Collection get(java.lang.String ruleName,
                         java.lang.String collectionName,
                         java.lang.Object lock)
Retrieves collection from the manager. If a collection for this name doesn't exist it should be created.

Parameters:
ruleName - Name of the rule this collection belongs to.
collectionName - Name of the collection withing the rule.
lock - Collection monitor for synchronization.
Returns:
Collection, never null.

clear

void clear()
Clears all collections.



Copyright © 2005 Hammurapi Group. All Rights Reserved.