org.jenkinsci.plugins.scriptler.util
Class GroovyScript

java.lang.Object
  extended by org.jenkinsci.plugins.scriptler.util.GroovyScript
All Implemented Interfaces:
hudson.remoting.Callable<Object,RuntimeException>, hudson.remoting.DelegatingCallable<Object,RuntimeException>, Serializable

public class GroovyScript
extends Object
implements hudson.remoting.DelegatingCallable<Object,RuntimeException>

Inspired by hudson.util.RemotingDiagnostics.Script, but adding parameters.

See Also:
Serialized Form

Constructor Summary
GroovyScript(String script, Parameter[] parameters, boolean failWithException, hudson.model.TaskListener listener)
           
 
Method Summary
 Object call()
           
 ClassLoader getClassLoader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyScript

public GroovyScript(String script,
                    Parameter[] parameters,
                    boolean failWithException,
                    hudson.model.TaskListener listener)
Method Detail

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in interface hudson.remoting.DelegatingCallable<Object,RuntimeException>

call

public Object call()
            throws RuntimeException
Specified by:
call in interface hudson.remoting.Callable<Object,RuntimeException>
Throws:
RuntimeException


Copyright © 2010-2012. All Rights Reserved.