com.interface21.aop.interceptor
Class MockObjectInterceptor

java.lang.Object
  |
  +--com.interface21.aop.interceptor.MockObjectInterceptor
All Implemented Interfaces:
org.aopalliance.Interceptor, org.aopalliance.MethodInterceptor

public class MockObjectInterceptor
extends java.lang.Object
implements org.aopalliance.MethodInterceptor

Interceptor that throws UnsupportedOperationException on any invocation. Useful during development. ALSO MOCK INTERCEPTOR: can test

Author:
Rod Johnson

Constructor Summary
MockObjectInterceptor()
           
 
Method Summary
 java.lang.Object invoke(org.aopalliance.MethodInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockObjectInterceptor

public MockObjectInterceptor()
Method Detail

invoke

public java.lang.Object invoke(org.aopalliance.MethodInvocation invocation)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.aopalliance.MethodInterceptor
See Also:
Interceptor#invoke(Invocation)


Rod Johnson and Spring contributors 2001-2003.