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

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractInterceptorCallableWrapper(hudson.remoting.DelegatingCallable<T,IOException> callable)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Executed after the actual FileCallable is invoked (even if this one failed).
    protected void
    Executed before the actual FileCallable is invoked.
    final T
     
     

    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

      public final ClassLoader getClassLoader()
      Specified by:
      getClassLoader in interface hudson.remoting.DelegatingCallable<T,IOException>
    • call

      public final T call() throws IOException
      Specified by:
      call in interface hudson.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