hudson
Class FilePath.AbstractInterceptorCallableWrapper<T>
java.lang.Object
hudson.FilePath.AbstractInterceptorCallableWrapper<T>
- All Implemented Interfaces:
- hudson.remoting.Callable<T,IOException>, hudson.remoting.DelegatingCallable<T,IOException>, Serializable
- Enclosing class:
- FilePath
public abstract static class FilePath.AbstractInterceptorCallableWrapper<T>
- extends Object
- implements hudson.remoting.DelegatingCallable<T,IOException>
Abstract DelegatingCallable
that exposes an Before/After pattern for
FilePath.FileCallableWrapperFactory
that want to implement AOP-style interceptors
- Since:
- 1.482
- See Also:
- Serialized Form
Method Summary |
protected void |
after()
Executed after the actual FileCallable is invoked (even if this one failed). |
protected void |
before()
Executed before the actual FileCallable is invoked. |
T |
call()
|
ClassLoader |
getClassLoader()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilePath.AbstractInterceptorCallableWrapper
public FilePath.AbstractInterceptorCallableWrapper(hudson.remoting.DelegatingCallable<T,IOException> callable)
getClassLoader
public final ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interface hudson.remoting.DelegatingCallable<T,IOException>
call
public final T call()
throws IOException
- Specified by:
call
in interface hudson.remoting.Callable<T,IOException>
- Throws:
IOException
before
protected void before()
- Executed before the actual FileCallable is invoked. This code will run on remote
after
protected void after()
- Executed after the actual FileCallable is invoked (even if this one failed). This code will run on remote
Copyright © 2004-2013. All Rights Reserved.