mirror of https://github.com/apache/openjpa.git
OPENJPA-346
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@571269 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3a78ec68ac
commit
a7777cb075
|
@ -60,14 +60,24 @@ public class PCEnhancerAgent {
|
||||||
public static void premain(String args, Instrumentation inst) {
|
public static void premain(String args, Instrumentation inst) {
|
||||||
Options opts = Configurations.parseProperties(args);
|
Options opts = Configurations.parseProperties(args);
|
||||||
|
|
||||||
if (opts.getBooleanProperty(
|
if (opts.containsKey("ClassLoadEnhancement") ||
|
||||||
"ClassLoadEnhancement", "classLoadEnhancement", true))
|
opts.containsKey("classLoadEnhancement")) {
|
||||||
registerClassLoadEnhancer(inst, opts);
|
if (opts.getBooleanProperty(
|
||||||
|
"ClassLoadEnhancement", "classLoadEnhancement", true))
|
||||||
// Deprecated property setting
|
registerClassLoadEnhancer(inst, opts);
|
||||||
if (opts.getBooleanProperty(
|
}
|
||||||
"RuntimeEnhancement", "runtimeEnhancement", true))
|
else if (opts.containsKey("RuntimeEnhancement") ||
|
||||||
|
opts.containsKey("runtimeEnhancement")) {
|
||||||
|
// Deprecated property setting
|
||||||
|
if (opts.getBooleanProperty(
|
||||||
|
"RuntimeEnhancement", "runtimeEnhancement", true))
|
||||||
|
registerClassLoadEnhancer(inst, opts);
|
||||||
|
} else {
|
||||||
|
// if neither is set, then we should be turning it on. We need this
|
||||||
|
// logic instead of just a getBooleanProperty() because of the
|
||||||
|
// backwards-compat logic flow.
|
||||||
registerClassLoadEnhancer(inst, opts);
|
registerClassLoadEnhancer(inst, opts);
|
||||||
|
}
|
||||||
|
|
||||||
if (opts.getBooleanProperty(
|
if (opts.getBooleanProperty(
|
||||||
"RuntimeRedefinition", "runtimeRedefinition", true)) {
|
"RuntimeRedefinition", "runtimeRedefinition", true)) {
|
||||||
|
|
Loading…
Reference in New Issue