You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rm...@apache.org on 2015/11/27 13:14:37 UTC

tomee git commit: making default BlacklistClassResolver configurable

Repository: tomee
Updated Branches:
  refs/heads/master 3966347fd -> d199ec46c


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/master
Commit: d199ec46cad30165aff7d27d07ff2d9dfae5a099
Parents: 3966347
Author: Romain Manni-Bucau <rm...@gmail.com>
Authored: Fri Nov 27 13:14:31 2015 +0100
Committer: Romain Manni-Bucau <rm...@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;