|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.modules.boot.ReflectionHelper
JRockit VM has problems with MuleBootstrap's approach. Namely, for jars loaded dynamically into a system classloader (launcher) it can't resolve static method calls. At the same time, inspecting the dynamically loaded class reports all methods as available. The class implements all such calls via reflection as a workaround. Sun's VM had no problems with the original approach, and doesn't have any with this workaround either.
Method Summary | |
static String[][] |
getCliOptions()
Workaround for JRockit unable to access a public static field value. |
static String |
getCommandLineOption(String option,
String[] args,
String[][] opts)
Wrap SystemUtils.getCommandLineOption(String, String[], String[][]) . |
static URL |
getResource(String resourceName,
Class callingClass)
Wrap ClassUtils.getResource(String, Class) . |
static boolean |
isClassOnPath(String className,
Class currentClass)
Wrap ClassUtils.isClassOnPath(String, Class) . |
static void |
wrapperMain(String[] args)
Wrap WrapperSimpleApp.main(String[]) . |
static void |
wrapperStop(int exitCode)
Wrap WrapperSimpleApp.stop(int) . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static URL getResource(String resourceName, Class callingClass) throws Exception
ClassUtils.getResource(String, Class)
.
resourceName
- The name of the resource to loadcallingClass
- The Class object of the calling object
Exception
public static boolean isClassOnPath(String className, Class currentClass) throws Exception
ClassUtils.isClassOnPath(String, Class)
.
className
- The class name to look forcurrentClass
- the calling class
Exception
public static String[][] getCliOptions() throws Exception
MuleServer.CLI_OPTIONS
Exception
public static String getCommandLineOption(String option, String[] args, String[][] opts) throws Exception
SystemUtils.getCommandLineOption(String, String[], String[][])
.
Exception
public static void wrapperMain(String[] args) throws Exception
WrapperSimpleApp.main(String[])
.
Exception
public static void wrapperStop(int exitCode) throws Exception
WrapperSimpleApp.stop(int)
.
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |