Class GroovySelectorFactory
java.lang.Object
ch.tocco.nice2.scripting.impl.groovy.selector.GroovySelectorFactory
- All Implemented Interfaces:
SelectorFactory
SelectorFactory that creates selectors based on groovy expressions that
are evaluated using the GroovyEvaluationService.-
Constructor Summary
ConstructorsConstructorDescriptionGroovySelectorFactory(Context context, GroovyEvaluationService groovyEvaluationService, org.slf4j.Logger log) -
Method Summary
-
Constructor Details
-
GroovySelectorFactory
public GroovySelectorFactory(Context context, @Lazy GroovyEvaluationService groovyEvaluationService, org.slf4j.Logger log)
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceSelectorFactory
-
createSelector
Description copied from interface:SelectorFactoryCreates an implementation of theSelectorinterface based. The implementation is based on scripts defined in theselectionelement of a relation model definition.- Specified by:
createSelectorin interfaceSelectorFactory- Parameters:
name- the name of the selectorimplementation- the implementation of the method as a string- Returns:
- the
Selectorwith implementedSelector.isSelected(ch.tocco.nice2.model.entity.api.RelationModel, ch.tocco.nice2.model.entity.api.EntityReference, ch.tocco.nice2.model.entity.api.EntityReference)method - Throws:
PersistException
-