Class GroovySelectorCacheConfiguration

java.lang.Object
ch.tocco.nice2.scripting.impl.groovy.selector.GroovySelectorCacheConfiguration
All Implemented Interfaces:
EntityCacheConfiguration<SelectorKey,Boolean>

@Component public class GroovySelectorCacheConfiguration extends Object implements EntityCacheConfiguration<SelectorKey,Boolean>
This cache caches the results of Selector.isSelected(RelationModel, EntityReference, EntityReference). Note: the cache is valid for the duration of a transaction and the results may become invalid if the Entity changes. However, in practice this does not really happen and Selector.isSelected(RelationModel, EntityReference, EntityReference) is called unnecessarily often (from the netui plugin), which inefficient. As we would like to remove the Selector concept anyway, this seems to be the best compromise.