[jboss-cvs] JBossAS SVN: r94864 - in projects/jboss-cl/branches/Branch_2_0/classloader/src: main/java/org/jboss/classloader/spi/filter and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 14 09:04:23 EDT 2009
Author: adrian at jboss.org
Date: 2009-10-14 09:04:23 -0400 (Wed, 14 Oct 2009)
New Revision: 94864
Modified:
projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/CombiningClassFilter.java
projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/EverythingClassFilter.java
projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/JavaOnlyClassFilter.java
projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/NothingButJavaClassFilter.java
projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/NothingClassFilter.java
projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/PatternClassFilter.java
projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/spi/filter/ClassFilter.java
projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/spi/filter/PackageClassFilter.java
projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/spi/filter/RecursivePackageClassFilter.java
projects/jboss-cl/branches/Branch_2_0/classloader/src/test/java/org/jboss/test/classloader/domain/support/MatchClassFilter.java
projects/jboss-cl/branches/Branch_2_0/classloader/src/test/java/org/jboss/test/classloader/domain/support/NoMatchClassFilter.java
Log:
[JBCL-123] - Make ClassFilter Serializable
Modified: projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/CombiningClassFilter.java
===================================================================
--- projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/CombiningClassFilter.java 2009-10-14 13:03:28 UTC (rev 94863)
+++ projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/CombiningClassFilter.java 2009-10-14 13:04:23 UTC (rev 94864)
@@ -31,6 +31,9 @@
*/
public class CombiningClassFilter implements ClassFilter
{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = -2504634309000740765L;
+
/** Whether it is an "and" filter */
private boolean and = false;
Modified: projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/EverythingClassFilter.java
===================================================================
--- projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/EverythingClassFilter.java 2009-10-14 13:03:28 UTC (rev 94863)
+++ projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/EverythingClassFilter.java 2009-10-14 13:04:23 UTC (rev 94864)
@@ -31,6 +31,9 @@
*/
public class EverythingClassFilter implements ClassFilter
{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = 7781337360322042671L;
+
/** The singleton instance */
public static final EverythingClassFilter INSTANCE = new EverythingClassFilter();
Modified: projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/JavaOnlyClassFilter.java
===================================================================
--- projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/JavaOnlyClassFilter.java 2009-10-14 13:03:28 UTC (rev 94863)
+++ projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/JavaOnlyClassFilter.java 2009-10-14 13:04:23 UTC (rev 94864)
@@ -29,6 +29,9 @@
*/
public class JavaOnlyClassFilter extends PatternClassFilter
{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = 8829061047129909464L;
+
/** The singleton instance */
public static final JavaOnlyClassFilter INSTANCE = new JavaOnlyClassFilter();
Modified: projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/NothingButJavaClassFilter.java
===================================================================
--- projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/NothingButJavaClassFilter.java 2009-10-14 13:03:28 UTC (rev 94863)
+++ projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/NothingButJavaClassFilter.java 2009-10-14 13:04:23 UTC (rev 94864)
@@ -29,6 +29,9 @@
*/
public class NothingButJavaClassFilter extends PatternClassFilter
{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = -7796711453545934666L;
+
/** The singleton instance */
public static final NothingButJavaClassFilter INSTANCE = new NothingButJavaClassFilter();
Modified: projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/NothingClassFilter.java
===================================================================
--- projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/NothingClassFilter.java 2009-10-14 13:03:28 UTC (rev 94863)
+++ projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/NothingClassFilter.java 2009-10-14 13:04:23 UTC (rev 94864)
@@ -31,6 +31,9 @@
*/
public class NothingClassFilter implements ClassFilter
{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = -4864511445323204832L;
+
/** The singleton instance */
public static final NothingClassFilter INSTANCE = new NothingClassFilter();
Modified: projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/PatternClassFilter.java
===================================================================
--- projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/PatternClassFilter.java 2009-10-14 13:03:28 UTC (rev 94863)
+++ projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/PatternClassFilter.java 2009-10-14 13:04:23 UTC (rev 94864)
@@ -35,6 +35,9 @@
*/
public class PatternClassFilter implements ClassFilter
{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = -9128970113480901464L;
+
/** The class patterns as regular expressions */
private Pattern[] classPatterns;
Modified: projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/spi/filter/ClassFilter.java
===================================================================
--- projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/spi/filter/ClassFilter.java 2009-10-14 13:03:28 UTC (rev 94863)
+++ projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/spi/filter/ClassFilter.java 2009-10-14 13:04:23 UTC (rev 94864)
@@ -21,6 +21,8 @@
*/
package org.jboss.classloader.spi.filter;
+import java.io.Serializable;
+
import org.jboss.classloader.plugins.filter.EverythingClassFilter;
import org.jboss.classloader.plugins.filter.JavaOnlyClassFilter;
import org.jboss.classloader.plugins.filter.NothingButJavaClassFilter;
@@ -32,7 +34,7 @@
* @author <a href="adrian at jboss.com">Adrian Brock</a>
* @version $Revision: 1.1 $
*/
-public interface ClassFilter
+public interface ClassFilter extends Serializable
{
/** Match evertything */
ClassFilter EVERYTHING = EverythingClassFilter.INSTANCE;
Modified: projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/spi/filter/PackageClassFilter.java
===================================================================
--- projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/spi/filter/PackageClassFilter.java 2009-10-14 13:03:28 UTC (rev 94863)
+++ projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/spi/filter/PackageClassFilter.java 2009-10-14 13:04:23 UTC (rev 94864)
@@ -36,6 +36,9 @@
*/
public class PackageClassFilter extends PatternClassFilter
{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = 8922510385156624259L;
+
/** The patterns as regular expressions */
private String[] packageNames;
Modified: projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/spi/filter/RecursivePackageClassFilter.java
===================================================================
--- projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/spi/filter/RecursivePackageClassFilter.java 2009-10-14 13:03:28 UTC (rev 94863)
+++ projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/spi/filter/RecursivePackageClassFilter.java 2009-10-14 13:04:23 UTC (rev 94864)
@@ -36,6 +36,9 @@
*/
public class RecursivePackageClassFilter extends PatternClassFilter
{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = -2757199997130618510L;
+
private static final String[] EVERYTHING_PATTERN = { ".*" };
/** The patterns as regular expressions */
Modified: projects/jboss-cl/branches/Branch_2_0/classloader/src/test/java/org/jboss/test/classloader/domain/support/MatchClassFilter.java
===================================================================
--- projects/jboss-cl/branches/Branch_2_0/classloader/src/test/java/org/jboss/test/classloader/domain/support/MatchClassFilter.java 2009-10-14 13:03:28 UTC (rev 94863)
+++ projects/jboss-cl/branches/Branch_2_0/classloader/src/test/java/org/jboss/test/classloader/domain/support/MatchClassFilter.java 2009-10-14 13:04:23 UTC (rev 94864)
@@ -32,6 +32,9 @@
*/
public class MatchClassFilter implements ClassFilter
{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = 3750947985668281101L;
+
String className;
public boolean filtered = false;
Modified: projects/jboss-cl/branches/Branch_2_0/classloader/src/test/java/org/jboss/test/classloader/domain/support/NoMatchClassFilter.java
===================================================================
--- projects/jboss-cl/branches/Branch_2_0/classloader/src/test/java/org/jboss/test/classloader/domain/support/NoMatchClassFilter.java 2009-10-14 13:03:28 UTC (rev 94863)
+++ projects/jboss-cl/branches/Branch_2_0/classloader/src/test/java/org/jboss/test/classloader/domain/support/NoMatchClassFilter.java 2009-10-14 13:04:23 UTC (rev 94864)
@@ -32,6 +32,9 @@
*/
public class NoMatchClassFilter implements ClassFilter
{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = 8061776668591552349L;
+
String className;
public boolean filtered = false;
More information about the jboss-cvs-commits
mailing list