test
Class ClosureAdapter

java.lang.Object
  extended by test.ClosureAdapter
All Implemented Interfaces:
hudson.remoting.Callable, hudson.remoting.DelegatingCallable, java.io.Serializable

public class ClosureAdapter
extends java.lang.Object
implements hudson.remoting.DelegatingCallable

Takes a Closure and wraps it as a Callable.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Constructor Summary
ClosureAdapter(groovy.lang.Closure closure)
           
 
Method Summary
 java.lang.Object call()
           
 java.lang.ClassLoader getClassLoader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClosureAdapter

public ClosureAdapter(groovy.lang.Closure closure)
Method Detail

call

public java.lang.Object call()
                      throws java.lang.Throwable
Specified by:
call in interface hudson.remoting.Callable
Throws:
java.lang.Throwable

getClassLoader

public java.lang.ClassLoader getClassLoader()
Specified by:
getClassLoader in interface hudson.remoting.DelegatingCallable


Copyright © 2009. All Rights Reserved.