Class ScriptExpressionFactory
- java.lang.Object
-
- com.evolveum.midpoint.model.common.expression.script.ScriptExpressionFactory
-
- All Implemented Interfaces:
Cache
,CacheInvalidationListener
public class ScriptExpressionFactory extends Object implements Cache
- Author:
- Radovan Semancik
-
-
Constructor Summary
Constructors Constructor Description ScriptExpressionFactory(@NotNull PrismContext prismContext, @NotNull RepositoryService repositoryService, @NotNull Collection<FunctionLibrary> standardFunctionLibraries, @NotNull Collection<ScriptEvaluator> evaluators, @NotNull CacheRegistry cacheRegistry, @NotNull ObjectResolver objectResolver)
ScriptExpressionFactory(@NotNull Collection<FunctionLibrary> standardFunctionLibraries, @NotNull ObjectResolver objectResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScriptExpression
createScriptExpression(ScriptExpressionEvaluatorType expressionType, ItemDefinition<?> outputDefinition, ExpressionProfile expressionProfile, ExpressionFactory expressionFactory, String shortDesc, OperationResult result)
void
dumpContent()
@NotNull Map<String,ScriptEvaluator>
getEvaluators()
@NotNull ObjectResolver
getObjectResolver()
@NotNull Collection<SingleCacheStateInformationType>
getStateInformation()
void
invalidate(Class<?> type, String oid, CacheInvalidationContext context)
void
register()
void
registerEvaluator(ScriptEvaluator evaluator)
void
unregister()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.repo.api.Cache
getEventSpecifications, invalidate
-
-
-
-
Constructor Detail
-
ScriptExpressionFactory
public ScriptExpressionFactory(@NotNull @NotNull PrismContext prismContext, @NotNull @NotNull RepositoryService repositoryService, @NotNull @NotNull Collection<FunctionLibrary> standardFunctionLibraries, @NotNull @NotNull Collection<ScriptEvaluator> evaluators, @NotNull @NotNull CacheRegistry cacheRegistry, @NotNull @NotNull ObjectResolver objectResolver)
-
ScriptExpressionFactory
@VisibleForTesting public ScriptExpressionFactory(@NotNull @NotNull Collection<FunctionLibrary> standardFunctionLibraries, @NotNull @NotNull ObjectResolver objectResolver)
-
-
Method Detail
-
register
@PostConstruct public void register()
-
unregister
@PreDestroy public void unregister()
-
registerEvaluator
@VisibleForTesting public void registerEvaluator(ScriptEvaluator evaluator)
-
getObjectResolver
@VisibleForTesting @NotNull public @NotNull ObjectResolver getObjectResolver()
-
getEvaluators
@VisibleForTesting @NotNull public @NotNull Map<String,ScriptEvaluator> getEvaluators()
-
createScriptExpression
public ScriptExpression createScriptExpression(ScriptExpressionEvaluatorType expressionType, ItemDefinition<?> outputDefinition, ExpressionProfile expressionProfile, ExpressionFactory expressionFactory, String shortDesc, OperationResult result) throws ExpressionSyntaxException, SecurityViolationException
-
invalidate
public void invalidate(Class<?> type, String oid, CacheInvalidationContext context)
- Specified by:
invalidate
in interfaceCache
-
getStateInformation
@NotNull public @NotNull Collection<SingleCacheStateInformationType> getStateInformation()
- Specified by:
getStateInformation
in interfaceCache
-
dumpContent
public void dumpContent()
- Specified by:
dumpContent
in interfaceCache
-
-