-
- All Implemented Interfaces:
-
com.weedow.spring.data.search.query.specification.SpecificationExecutorFactory
public final class SpecificationExecutorFactoryCachingDecorator implements SpecificationExecutorFactory
SpecificationExecutorFactory implementation which wraps a given SpecificationExecutorFactory and cache the result of the getSpecificationExecutor method.
-
-
Constructor Summary
Constructors Constructor Description SpecificationExecutorFactoryCachingDecorator(SpecificationExecutorFactory decoratedSpecificationExecutorFactory)
-
Method Summary
Modifier and Type Method Description <T extends Any> SpecificationExecutor<T>
getSpecificationExecutor(Class<T> entityClass)
Returns a new SpecificationExecutor instance from the given Entity Class. -
-
Constructor Detail
-
SpecificationExecutorFactoryCachingDecorator
SpecificationExecutorFactoryCachingDecorator(SpecificationExecutorFactory decoratedSpecificationExecutorFactory)
- Parameters:
decoratedSpecificationExecutorFactory
- SpecificationExecutorFactory to be wrapped
-
-
Method Detail
-
getSpecificationExecutor
<T extends Any> SpecificationExecutor<T> getSpecificationExecutor(Class<T> entityClass)
Returns a new SpecificationExecutor instance from the given Entity Class.
- Parameters:
entityClass
- Entity Class used to initialize the SpecificationExecutor
-
-
-
-