public class RepositoryFactorySupport.QueryExecutorMethodInterceptor extends Object implements MethodInterceptor
MethodInterceptor
intercepts calls to methods of the custom implementation and delegates the to it if
configured. Furthermore it resolves method calls to finders and triggers execution of them. You can rely on having
a custom repository implementation instance set if this returns true.Constructor and Description |
---|
QueryExecutorMethodInterceptor(RepositoryInformation repositoryInformation,
Object customImplementation,
Object target)
Creates a new
RepositoryFactorySupport.QueryExecutorMethodInterceptor . |
public QueryExecutorMethodInterceptor(RepositoryInformation repositoryInformation, Object customImplementation, Object target)
RepositoryFactorySupport.QueryExecutorMethodInterceptor
. Builds a model of QueryMethod
s to be invoked on
execution of repository interface methods.public Object invoke(MethodInvocation invocation) throws Throwable
invoke
in interface MethodInterceptor
Throwable
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.