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>
AbstractDelegatingCallablethat exposes a Before/After pattern forFilePath.FileCallableWrapperFactorythat want to implement AOP-style interceptors- Since:
- 1.482
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractInterceptorCallableWrapper(hudson.remoting.DelegatingCallable<T,IOException> callable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafter()Executed after the actual FileCallable is invoked (even if this one failed).protected voidbefore()Executed before the actual FileCallable is invoked.Tcall()ClassLoadergetClassLoader()
-
-
-
Constructor Detail
-
AbstractInterceptorCallableWrapper
protected AbstractInterceptorCallableWrapper(hudson.remoting.DelegatingCallable<T,IOException> callable)
-
-
Method Detail
-
getClassLoader
public final ClassLoader getClassLoader()
- Specified by:
getClassLoaderin interfacehudson.remoting.DelegatingCallable<T,IOException>
-
call
public final T call() throws IOException
- Specified by:
callin 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
-
-