hudson.util
Class InterceptingProxy

java.lang.Object
  extended by hudson.util.InterceptingProxy

public abstract class InterceptingProxy
extends Object

Creates a proxy that traps every method call.

Author:
Kohsuke Kawaguchi

Constructor Summary
InterceptingProxy()
           
 
Method Summary
protected abstract  Object call(Object o, Method m, Object[] args)
          Intercepts every method call.
<T> T
wrap(Class<T> type, T object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptingProxy

public InterceptingProxy()
Method Detail

call

protected abstract Object call(Object o,
                               Method m,
                               Object[] args)
                        throws Throwable
Intercepts every method call.

Throws:
Throwable

wrap

public final <T> T wrap(Class<T> type,
                        T object)


Copyright © 2004-2013. All Rights Reserved.