Methods Summary |
---|
public static JavahAdapter | getAdapter(java.lang.String choice, org.apache.tools.ant.ProjectComponent log)Creates the JavahAdapter based on the user choice and
potentially the VM vendor.
if ((JavaEnvUtils.isKaffe() && choice == null)
|| Kaffeh.IMPLEMENTATION_NAME.equals(choice)) {
return new Kaffeh();
} else if (SunJavah.IMPLEMENTATION_NAME.equals(choice)) {
return new SunJavah();
} else if (choice != null) {
return resolveClassName(choice);
}
// This default has been good enough until Ant 1.6.3, so stick
// with it
return new SunJavah();
|
public static java.lang.String | getDefault()Determines the default choice of adapter based on the VM
vendor.
if (JavaEnvUtils.isKaffe()) {
return Kaffeh.IMPLEMENTATION_NAME;
}
return SunJavah.IMPLEMENTATION_NAME;
|
private static JavahAdapter | resolveClassName(java.lang.String className)Tries to resolve the given classname into a javah adapter.
Throws a fit if it can't.
return (JavahAdapter) ClasspathUtils.newInstance(className,
JavahAdapterFactory.class.getClassLoader(), JavahAdapter.class);
|