Class ExpressionFactory
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.expression.ExpressionFactory
-
- All Implemented Interfaces:
Cache
,CacheInvalidationListener
public class ExpressionFactory extends Object implements Cache
Factory for expressions and registry for expression evaluator factories.- Author:
- semancik
-
-
Constructor Summary
Constructors Constructor Description ExpressionFactory(SecurityContextManager securityContextManager, LocalizationService localizationService)
-
Method Summary
-
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
-
ExpressionFactory
public ExpressionFactory(SecurityContextManager securityContextManager, LocalizationService localizationService)
-
-
Method Detail
-
register
@PostConstruct public void register()
-
unregister
@PreDestroy public void unregister()
-
setObjectResolver
public void setObjectResolver(ObjectResolver objectResolver)
-
getLocalizationService
public LocalizationService getLocalizationService()
-
getSecurityContextManager
public SecurityContextManager getSecurityContextManager()
-
makeExpression
public <V extends PrismValue,D extends ItemDefinition<?>> Expression<V,D> makeExpression(ExpressionType expressionType, D outputDefinition, ExpressionProfile expressionProfile, String shortDesc, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException
-
makePropertyExpression
public <T> Expression<PrismPropertyValue<T>,PrismPropertyDefinition<T>> makePropertyExpression(ExpressionType expressionType, QName outputPropertyName, ExpressionProfile expressionProfile, String shortDesc, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, SecurityViolationException
-
getEvaluatorFactory
public ExpressionEvaluatorFactory getEvaluatorFactory(QName elementName)
-
registerEvaluatorFactory
public void registerEvaluatorFactory(ExpressionEvaluatorFactory factory)
-
setDefaultEvaluatorFactory
public void setDefaultEvaluatorFactory(ExpressionEvaluatorFactory defaultEvaluatorFactory)
-
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
-
-