/** * Set the codebase and useCodebaseOnly properties. This is public only for test code. */ public static synchronized void setCodebaseProperties() { String prop = AccessController.doPrivileged(new GetPropertyAction(LOCAL_CODEBASE_KEY)); if (prop != null && prop.trim().length() > 0) { localCodebase = prop; } prop = AccessController.doPrivileged(new GetPropertyAction(USE_CODEBASE_ONLY_KEY)); if (prop != null && prop.trim().length() > 0) { useCodebaseOnly = Boolean.valueOf(prop).booleanValue(); } }
/** * Set the codebase and useCodebaseOnly properties. This is public only for test code. */ public static synchronized void setCodebaseProperties() { String prop = AccessController.doPrivileged(new GetPropertyAction(LOCAL_CODEBASE_KEY)); if (prop != null && prop.trim().length() > 0) { localCodebase = prop; } prop = AccessController.doPrivileged(new GetPropertyAction(USE_CODEBASE_ONLY_KEY)); if (prop != null && prop.trim().length() > 0) { useCodebaseOnly = Boolean.valueOf(prop).booleanValue(); } }