Package hudson

Class 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:
    Serialized Form
    • Constructor Detail

      • AbstractInterceptorCallableWrapper

        protected AbstractInterceptorCallableWrapper​(hudson.remoting.DelegatingCallable<T,​IOException> callable)
    • Method Detail

      • getClassLoader

        public final ClassLoader getClassLoader()
        Specified by:
        getClassLoader in interface hudson.remoting.DelegatingCallable<T,​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