wt.rule
Interface RuleServiceSvr

All Known Implementing Classes:
StandardRuleService

public interface RuleServiceSvr



Supported API: false

Extendable: false


Method Summary
 void addCache(RuleCache cache, RuleType ruleType)
          Add a CacheManager to the list of caches managed by this service for the specified RuleType.
 void addPostStoreTask(Persistable object, com.objectspace.jgl.UnaryFunction task)
          Add a task to be executed when a POST_STORE event is received for the specified object.
 

Method Detail

addPostStoreTask

public void addPostStoreTask(Persistable object,
                             com.objectspace.jgl.UnaryFunction task)
Add a task to be executed when a POST_STORE event is received for the specified object.

The task is a UnaryFunction that takes one argument. When a POST_STORE event is received for the specified object, the function is called with that object as its sole argument.

The functions are held in a weak map, so if the object is garbage collected before it is persisted, the task will be removed.

Supported API: false

Parameters:
object -
task -

addCache

public void addCache(RuleCache cache,
                     RuleType ruleType)
Add a CacheManager to the list of caches managed by this service for the specified RuleType.

These caches will be notified when the following events occur for a rule with the specified rule type:



Supported API: false

Parameters:
cache -
ruleType -