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>
Abstract
DelegatingCallable that exposes a Before/After pattern for
FilePath.FileCallableWrapperFactory that want to implement AOP-style interceptors- Since:
- 1.482
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractInterceptorCallableWrapper(hudson.remoting.DelegatingCallable<T, IOException> callable) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter()Executed after the actual FileCallable is invoked (even if this one failed).protected voidbefore()Executed before the actual FileCallable is invoked.final Tcall()final ClassLoaderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.remoting.Callable
getChannelOrFail, getOpenChannelOrFailMethods inherited from interface org.jenkinsci.remoting.RoleSensitive
checkRoles
-
Constructor Details
-
AbstractInterceptorCallableWrapper
protected AbstractInterceptorCallableWrapper(hudson.remoting.DelegatingCallable<T, IOException> callable)
-
-
Method Details
-
getClassLoader
- Specified by:
getClassLoaderin interfacehudson.remoting.DelegatingCallable<T,IOException>
-
call
- 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
-