org.directwebremoting.guice.util
Class OutermostCallInterceptor

java.lang.Object
  extended by org.directwebremoting.guice.util.OutermostCallInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class OutermostCallInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor

Provides static decorator method for restricting interception to the outermost of several nested matching join points. Also provides corresponding MethodInterceptor wrapper method.

Author:
Tim Peierls [tim at peierls dot net]

Method Summary
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
static org.aopalliance.intercept.MethodInterceptor outermostCall(org.aopalliance.intercept.MethodInterceptor interceptor)
          Decorates a MethodInterceptor so that only the outermost invocation using that interceptor will be intercepted and nested invocations will be ignored.
static MethodInterceptorWrapper outermostCallWrapper()
          For passing to bindInterceptor to wrap injected MethodInterceptors.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

outermostCallWrapper

public static MethodInterceptorWrapper outermostCallWrapper()
For passing to bindInterceptor to wrap injected MethodInterceptors.


outermostCall

public static org.aopalliance.intercept.MethodInterceptor outermostCall(org.aopalliance.intercept.MethodInterceptor interceptor)
Decorates a MethodInterceptor so that only the outermost invocation using that interceptor will be intercepted and nested invocations will be ignored.


invoke

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

Copyright 2008