Package 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
,org.jenkinsci.remoting.RoleSensitive
- Enclosing class:
- FilePath
public abstract static class FilePath.AbstractInterceptorCallableWrapper<T> extends Object implements hudson.remoting.DelegatingCallable<T,IOException>
AbstractDelegatingCallable
that exposes a Before/After pattern forFilePath.FileCallableWrapperFactory
that want to implement AOP-style interceptors- Since:
- 1.482
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractInterceptorCallableWrapper(hudson.remoting.DelegatingCallable<T,IOException> callable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
Constructor Detail
-
AbstractInterceptorCallableWrapper
protected AbstractInterceptorCallableWrapper(hudson.remoting.DelegatingCallable<T,IOException> callable)
-
-
Method Detail
-
getClassLoader
public final ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfacehudson.remoting.DelegatingCallable<T,IOException>
-
call
public final T call() throws IOException
- Specified by:
call
in interfacehudson.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
-
-