Spring Data Commons

org.springframework.data.repository.core.support
Class RepositoryFactorySupport.QueryExecutorMethodInterceptor

java.lang.Object
  extended by org.springframework.data.repository.core.support.RepositoryFactorySupport.QueryExecutorMethodInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
Enclosing class:
RepositoryFactorySupport

public class RepositoryFactorySupport.QueryExecutorMethodInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor

This 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.

Author:
Oliver Gierke

Constructor Summary
RepositoryFactorySupport.QueryExecutorMethodInterceptor(RepositoryInformation repositoryInformation, Object customImplementation, Object target)
          Creates a new RepositoryFactorySupport.QueryExecutorMethodInterceptor.
 
Method Summary
 Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryFactorySupport.QueryExecutorMethodInterceptor

public RepositoryFactorySupport.QueryExecutorMethodInterceptor(RepositoryInformation repositoryInformation,
                                                               Object customImplementation,
                                                               Object target)
Creates a new RepositoryFactorySupport.QueryExecutorMethodInterceptor. Builds a model of QueryMethods to be invoked on execution of repository interface methods.

Method Detail

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
              throws Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
Throwable

Spring Data Commons

Copyright © 2012. All Rights Reserved.