io.warp10:warp10-ext-reflector
Installation
$ wf g -w /path/to/warp10 io.warp10 warp10-ext-reflector
/path/to/warp10/
is where Warp 10 is physically located.
Readme
Java Reflector extension for the WarpScript language
Execute any Java constructor or method indexed in the JVM classpath.
WARNING
This extension is proposed for testing purposes or to be used on a private Warp10 instance. Expose it on a public instance only with caution.
Note that SNAPSHOT
won't be able to work on arbitrary objects you bring to WarpScript with functions of this extension.
WarpScript functions
JAVAIMPORT // add an import statement to be used by the other functions below JAVANEW // creates a new instance of a Java class JAVAMETHOD // invoke a method of an instance JAVASTATICMETHOD // invoke a static method of a Java class
Examples
'java.util.Date' JAVAIMPORT [] 'Date' JAVANEW 'date' STORE $date [ NOW ] 'setTime' JAVAMETHOD
'org.apache.commons.lang3.math.NumberUtils.isParsable' JAVAIMPORT [ '123##456' ] 'isParsable' JAVASTATICMETHOD
Documentation
Available on warpfleet or under src/main/warpscript/io.warp10/java-reflector/doc/
.
Contact: jean-charles.vialatte@senx.io
Author

Jean-Charles Vialatte
jean-charles.vialatte@senx.io
Version
0.0.2-uberjar
Type
Extension
Last published
2020-02-20
License
Apache-2.0
Repository
Tags
reflectionPath | Size | Creation time |
---|---|---|
JAVAIMPORT | 676 bytes | 2020-01-07 |
JAVAMETHOD | 830 bytes | 2020-01-07 |
JAVANEW | 765 bytes | 2020-01-07 |
JAVASTATICMETHOD | 857 bytes | 2020-01-07 |
Versions | Published |
---|---|
0.0.2-uberjar | 2020-02-20 |