[Jboss-cvs] JBossAS SVN: r56387 - projects/microcontainer/trunk/container/src/main/org/jboss/classloading/spi
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Aug 29 02:15:55 EDT 2006
Author: scott.stark at jboss.org
Date: 2006-08-29 02:15:53 -0400 (Tue, 29 Aug 2006)
New Revision: 56387
Added:
projects/microcontainer/trunk/container/src/main/org/jboss/classloading/spi/Translator.java
Modified:
projects/microcontainer/trunk/container/src/main/org/jboss/classloading/spi/ClassLoadingDomain.java
projects/microcontainer/trunk/container/src/main/org/jboss/classloading/spi/DomainClassLoader.java
Log:
Add a Transformer interface for DomainClassLoader
Modified: projects/microcontainer/trunk/container/src/main/org/jboss/classloading/spi/ClassLoadingDomain.java
===================================================================
--- projects/microcontainer/trunk/container/src/main/org/jboss/classloading/spi/ClassLoadingDomain.java 2006-08-29 05:51:11 UTC (rev 56386)
+++ projects/microcontainer/trunk/container/src/main/org/jboss/classloading/spi/ClassLoadingDomain.java 2006-08-29 06:15:53 UTC (rev 56387)
@@ -1,16 +1,29 @@
/*
- * JBoss, the OpenSource J2EE webOS
- *
- * Distributable under LGPL license.
- * See terms of license at gnu.org.
+ * 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.classloading.spi;
import java.net.URL;
import java.util.Enumeration;
-import org.jboss.util.loading.Translator;
-
/**
* A ClassLoadingDomain holds a number of classloaders.
*
Modified: projects/microcontainer/trunk/container/src/main/org/jboss/classloading/spi/DomainClassLoader.java
===================================================================
--- projects/microcontainer/trunk/container/src/main/org/jboss/classloading/spi/DomainClassLoader.java 2006-08-29 05:51:11 UTC (rev 56386)
+++ projects/microcontainer/trunk/container/src/main/org/jboss/classloading/spi/DomainClassLoader.java 2006-08-29 06:15:53 UTC (rev 56387)
@@ -1,8 +1,23 @@
/*
- * JBoss, the OpenSource J2EE webOS
- *
- * Distributable under LGPL license.
- * See terms of license at gnu.org.
+ * 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.classloading.spi;
Added: projects/microcontainer/trunk/container/src/main/org/jboss/classloading/spi/Translator.java
===================================================================
--- projects/microcontainer/trunk/container/src/main/org/jboss/classloading/spi/Translator.java 2006-08-29 05:51:11 UTC (rev 56386)
+++ projects/microcontainer/trunk/container/src/main/org/jboss/classloading/spi/Translator.java 2006-08-29 06:15:53 UTC (rev 56387)
@@ -0,0 +1,43 @@
+/*
+ * 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.classloading.spi;
+
+import java.lang.instrument.IllegalClassFormatException;
+import java.security.ProtectionDomain;
+
+/**
+ * An implementation of this interface in order to transform class files.
+ * The transformation occurs before the class is defined by the JVM.
+ * @see java.lang.instrument.ClassFileTransformer
+ *
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public interface Translator
+{
+ byte[] transform(DomainClassLoader loader,
+ String className,
+ Class<?> classBeingRedefined,
+ ProtectionDomain protectionDomain,
+ byte[] classfileBuffer)
+ throws IllegalClassFormatException;
+}
More information about the jboss-cvs-commits
mailing list