classExists(String name) Use direct Class.forName() to test for the existence of a class.
We should not use BshClassManager here because:
a) the systems using these tests would probably not load the
classes through it anyway.
b) bshclassmanager is heavy and touches other class files.
public static boolean
haveAccessibility() If accessibility is enabled
determine if the accessibility mechanism exists and if we have
the optional bsh package to use it.
Note that even if both are true it does not necessarily mean that we
have runtime permission to access the fields...
public static boolean canGenerateInterfaces()(Code)
classExists
public static boolean classExists(String name)(Code)
Use direct Class.forName() to test for the existence of a class.
We should not use BshClassManager here because:
a) the systems using these tests would probably not load the
classes through it anyway.
b) bshclassmanager is heavy and touches other class files.
this capabilities code must be light enough to be used by any
system **including the remote applet**.
If accessibility is enabled
determine if the accessibility mechanism exists and if we have
the optional bsh package to use it.
Note that even if both are true it does not necessarily mean that we
have runtime permission to access the fields... Java security has
a say in it.
See Also:bsh.ReflectManager