[jboss-cvs] JBossAS SVN: r85898 - in projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect: spi and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Mar 16 07:35:38 EDT 2009
Author: stalep
Date: 2009-03-16 07:35:37 -0400 (Mon, 16 Mar 2009)
New Revision: 85898
Added:
projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist/DummyClassPoolFactory.java
projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/spi/ClassPoolFactory.java
Modified:
projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/spi/MutableTypeInfoFactoryInterface.java
Log:
[JBREFLECT-49]
ClassPoolFactory + a dummy impl.
Copied: projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist/DummyClassPoolFactory.java (from rev 85897, projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/spi/MutableTypeInfoFactoryInterface.java)
===================================================================
--- projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist/DummyClassPoolFactory.java (rev 0)
+++ projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist/DummyClassPoolFactory.java 2009-03-16 11:35:37 UTC (rev 85898)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.reflect.plugins.javassist;
+
+import javassist.ClassPool;
+
+import org.jboss.reflect.spi.ClassPoolFactory;
+
+/**
+ * A DummyClassPoolFactory.
+ *
+ * @author <a href="mailto:stale.pedersen at jboss.org">Stale W. Pedersen</a>
+ * @version $Revision: 1.1 $
+ */
+public class DummyClassPoolFactory implements ClassPoolFactory
+{
+
+ public ClassPool getPoolForLoader(ClassLoader cl)
+ {
+ return ClassPool.getDefault();
+ }
+
+}
Copied: projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/spi/ClassPoolFactory.java (from rev 85897, projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/spi/MutableTypeInfoFactoryInterface.java)
===================================================================
--- projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/spi/ClassPoolFactory.java (rev 0)
+++ projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/spi/ClassPoolFactory.java 2009-03-16 11:35:37 UTC (rev 85898)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.reflect.spi;
+
+import javassist.ClassPool;
+
+/**
+ * A ClassPoolFactory.
+ *
+ * @author <a href="mailto:stale.pedersen at jboss.org">Stale W. Pedersen</a>
+ * @version $Revision: 1.1 $
+ */
+public interface ClassPoolFactory
+{
+ ClassPool getPoolForLoader(ClassLoader cl);
+}
Modified: projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/spi/MutableTypeInfoFactoryInterface.java
===================================================================
--- projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/spi/MutableTypeInfoFactoryInterface.java 2009-03-16 11:35:23 UTC (rev 85897)
+++ projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/spi/MutableTypeInfoFactoryInterface.java 2009-03-16 11:35:37 UTC (rev 85898)
@@ -30,5 +30,12 @@
public interface MutableTypeInfoFactoryInterface
{
- MutableClassInfo createMutableClass(String name);
+ /**
+ * Create a new MutableClass
+ *
+ * @param name
+ * @return
+ */
+ MutableClassInfo createNewMutableClass(String name);
+
}
More information about the jboss-cvs-commits
mailing list