Spring Data Commmons

org.springframework.data.repository.support
Class RepositoryFactorySupport.QueryExecuterMethodInterceptor

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

public class RepositoryFactorySupport.QueryExecuterMethodInterceptor
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.QueryExecuterMethodInterceptor(Class<?> repositoryInterface, Object customImplementation, RepositorySupport<?,?> target)
          Creates a new RepositoryFactorySupport.QueryExecuterMethodInterceptor.
 
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.QueryExecuterMethodInterceptor

public RepositoryFactorySupport.QueryExecuterMethodInterceptor(Class<?> repositoryInterface,
                                                               Object customImplementation,
                                                               RepositorySupport<?,?> target)
Creates a new RepositoryFactorySupport.QueryExecuterMethodInterceptor. 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 Commmons

Copyright © 2011. All Rights Reserved.