making default BlacklistClassResolver configurable
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/d199ec46 Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/d199ec46 Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/d199ec46 Branch: refs/heads/tomee-7.0.0-M1 Commit: d199ec46cad30165aff7d27d07ff2d9dfae5a099 Parents: 3966347 Author: Romain Manni-Bucau <rmann...@gmail.com> Authored: Fri Nov 27 13:14:31 2015 +0100 Committer: Romain Manni-Bucau <rmann...@gmail.com> Committed: Fri Nov 27 13:14:31 2015 +0100 ---------------------------------------------------------------------- .../org/apache/openejb/core/rmi/BlacklistClassResolver.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/d199ec46/container/openejb-core/src/main/java/org/apache/openejb/core/rmi/BlacklistClassResolver.java ---------------------------------------------------------------------- diff --git a/container/openejb-core/src/main/java/org/apache/openejb/core/rmi/BlacklistClassResolver.java b/container/openejb-core/src/main/java/org/apache/openejb/core/rmi/BlacklistClassResolver.java index ffefc3a..57b6da6 100644 --- a/container/openejb-core/src/main/java/org/apache/openejb/core/rmi/BlacklistClassResolver.java +++ b/container/openejb-core/src/main/java/org/apache/openejb/core/rmi/BlacklistClassResolver.java @@ -17,12 +17,9 @@ package org.apache.openejb.core.rmi; public class BlacklistClassResolver { - private static final String[] WHITELIST = toArray(System.getProperty("tomee.serialization.class.whitelist")); - private static final String[] BLACKLIST = toArray(System.getProperty("tomee.serialization.class.blacklist")); - public static final BlacklistClassResolver DEFAULT = new BlacklistClassResolver( - new String[] { "org.codehaus.groovy.runtime.", "org.apache.commons.collections.functors.", "org.apache.xalan" }, - null); + toArray(System.getProperty("tomee.serialization.class.blacklist", "org.codehaus.groovy.runtime.,org.apache.commons.collections.functors.,org.apache.xalan")), + toArray(System.getProperty("tomee.serialization.class.whitelist"))); private final String[] blacklist; private final String[] whitelist;