public class Kilim
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Kilim.Config |
| Constructor and Description |
|---|
Kilim() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isWoven(java.lang.Class klass)
has klass been woven
|
static void |
main(java.lang.String[] args) |
static void |
run(java.lang.String className,
java.lang.String method,
java.lang.String... args)
run static method className.method(args) using reflection and the WeavingClassLoader
|
static boolean |
trampoline(boolean check,
java.lang.String... args)
run the calling (static) method in the WeavingClassLoader context
intended to be used from main
|
static boolean |
trampoline(Kilim.Config config,
java.lang.String... args)
run the calling (static) method in the WeavingClassLoader context using the provided config
|
static boolean |
trampoline(java.lang.Object example,
boolean check,
java.lang.String... args)
run the calling (static) method in the WeavingClassLoader context
using the classloader that was used to load example
intended to be used from main
|
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic static void run(java.lang.String className,
java.lang.String method,
java.lang.String... args)
throws java.lang.Exception
java.lang.Exceptionpublic static boolean trampoline(boolean check,
java.lang.String... args)
check - if the class is already woven then just returnargs - to be passed to the target methodjava.lang.RuntimeException - (wrapping for checked) Exceptions from the method calljava.lang.SecurityException - cascaded from Class.getFieldpublic static boolean trampoline(java.lang.Object example,
boolean check,
java.lang.String... args)
example - an object or a Class that has been loaded by the desired classloadercheck - if the class is already woven then just returnargs - to be passed to the target methodjava.lang.RuntimeException - (wrapping for checked) Exceptions from the method calljava.lang.SecurityException - cascaded from Class.getFieldpublic static boolean trampoline(Kilim.Config config, java.lang.String... args)
config - the configargs - the args to pass to the methodpublic static boolean isWoven(java.lang.Class klass)
klass - the class to checkjava.lang.SecurityException - cascaded from Class.getField