|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JRubyInvoker
Configures and invokes the JRuby runtime. The "invoke" method executes a given script (set as a Reader) and returns the results as an IRuby object.
| Method Summary | |
|---|---|
java.lang.Object |
invoke()
Invokes the script after all other values are set. |
java.lang.Object |
invoke(java.io.OutputStream stdout,
java.io.OutputStream stderr)
Invokes the script after all other values are set. |
void |
putGlobal(java.lang.String key,
java.lang.Object value)
Appends an input value with the given key to the Ruby script bas a global... |
void |
setAssumeLoop(boolean assumeLoop)
As per the Ruby command line arg -n. |
void |
setAssumePrintLoop(boolean assumePrintLoop)
As per the Ruby command line arg -p. |
void |
setAutoSplit(boolean autoSplit)
As per the Ruby command line arg -a. |
void |
setCurrentDirectory(java.lang.String currentDirectory)
Sets the current working directory for the JRuby interpreter. |
void |
setDebug(boolean debug)
As per the Ruby command line arg -d. |
void |
setLibraryPaths(java.lang.String[] libPaths)
Adds a library as per the Ruby command line arg -I. |
void |
setProcessLineEnds(boolean processLineEnds)
As per the Ruby command line arg -l. |
void |
setReader(java.io.Reader reader)
The sole way of sending a script to this invoker object. |
void |
setRequires(java.lang.String[] reqLibs)
Adds a 'require' file as per the Ruby command line arg -r. |
void |
setRuntime(org.jruby.Ruby runtime)
Not required, however if set, the invoker will tear down the runtime before exiting Invoke. |
void |
setWarning(int warning)
As per the Ruby command line arg -W#. |
| Method Detail |
|---|
void setReader(java.io.Reader reader)
reader - void setRuntime(org.jruby.Ruby runtime)
runtime - void setAssumeLoop(boolean assumeLoop)
assumeLoop - void setAssumePrintLoop(boolean assumePrintLoop)
assumePrintLoop - void setAutoSplit(boolean autoSplit)
autoSplit - void setWarning(int warning)
warning - void setDebug(boolean debug)
debug - void setProcessLineEnds(boolean processLineEnds)
processLineEnds - void setLibraryPaths(java.lang.String[] libPaths)
libPaths - void setRequires(java.lang.String[] reqLibs)
reqLibs -
void putGlobal(java.lang.String key,
java.lang.Object value)
key - value - void setCurrentDirectory(java.lang.String currentDirectory)
currentDirectory -
java.lang.Object invoke()
throws java.io.IOException,
org.codehaus.plexus.component.factory.ComponentInstantiationException
java.io.IOException
org.codehaus.plexus.component.factory.ComponentInstantiationException
java.lang.Object invoke(java.io.OutputStream stdout,
java.io.OutputStream stderr)
throws java.io.IOException,
org.codehaus.plexus.component.factory.ComponentInstantiationException
stdout - stream where jruby output tostderr - stream where jruby errors to
java.io.IOException
org.codehaus.plexus.component.factory.ComponentInstantiationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||