summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/ReflectionUtil.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-03-26 15:16:34 +0200
committerSven Gothel <[email protected]>2012-03-26 15:16:34 +0200
commite9e61421ef6009e6788998c471d1d3d30aaefea6 (patch)
tree4f27d46398b5c00f5d27985308f1e2b86dcf7fdb /src/java/com/jogamp/common/util/ReflectionUtil.java
parente2abb9583faf4b3dac6094fcd311475777528b8e (diff)
Platform: Add AWT_AVAILABLE 'knowledge'; RunnableExecutor: Add AWTEDT impl. / API doc cleanup; DynamicLibraryBundle: Add getDefaultRunnableExecutor()
Diffstat (limited to 'src/java/com/jogamp/common/util/ReflectionUtil.java')
-rw-r--r--src/java/com/jogamp/common/util/ReflectionUtil.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/util/ReflectionUtil.java b/src/java/com/jogamp/common/util/ReflectionUtil.java
index db98d6e..f6b9efb 100644
--- a/src/java/com/jogamp/common/util/ReflectionUtil.java
+++ b/src/java/com/jogamp/common/util/ReflectionUtil.java
@@ -46,6 +46,11 @@ public final class ReflectionUtil {
public static final boolean DEBUG = Debug.debug("ReflectionUtil");
+ public static class AWTNames {
+ public static final String ComponentClass = "java.awt.Component" ;
+ public static final String GraphicsEnvironmentClass = "java.awt.GraphicsEnvironment";
+ public static final String isHeadlessMethod = "isHeadless";
+ }
private static final Class<?>[] zeroTypes = new Class[0];
/**
@@ -261,11 +266,11 @@ public final class ReflectionUtil {
}
public static boolean isAWTComponent(Object target) {
- return instanceOf(target, "java.awt.Component");
+ return instanceOf(target, AWTNames.ComponentClass);
}
public static boolean isAWTComponent(Class<?> clazz) {
- return instanceOf(clazz, "java.awt.Component");
+ return instanceOf(clazz, AWTNames.ComponentClass);
}
/**