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
ModifierConstructorDescriptionprotected
AbstractInterceptorCallableWrapper
(hudson.remoting.DelegatingCallable<T, IOException> callable) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
after()
Executed after the actual FileCallable is invoked (even if this one failed).protected void
before()
Executed before the actual FileCallable is invoked.final T
call()
final ClassLoader
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.remoting.Callable
getChannelOrFail, getOpenChannelOrFail
Methods inherited from interface org.jenkinsci.remoting.RoleSensitive
checkRoles
-
Constructor Details
-
AbstractInterceptorCallableWrapper
protected AbstractInterceptorCallableWrapper(hudson.remoting.DelegatingCallable<T, IOException> callable)
-
-
Method Details
-
getClassLoader
- Specified by:
getClassLoader
in interfacehudson.remoting.DelegatingCallable<T,
IOException>
-
call
- 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
-