org.apache.commons.proxy.interceptor
Class SerializingInterceptor

java.lang.Object
  extended by org.apache.commons.proxy.interceptor.SerializingInterceptor
All Implemented Interfaces:
Interceptor

public class SerializingInterceptor
extends Object
implements Interceptor

An interceptor which makes a serialized copy of all parameters and return values. This is useful when testing remote services to ensure that all parameter/return types are in fact serializable/deserializable.

Since:
1.0

Constructor Summary
SerializingInterceptor()
           
 
Method Summary
 Object intercept(Invocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializingInterceptor

public SerializingInterceptor()
Method Detail

intercept

public Object intercept(Invocation invocation)
                 throws Throwable
Specified by:
intercept in interface Interceptor
Throws:
Throwable


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.