User: oleg
Date: 00/09/30 05:03:03
Modified: src/main/org/jboss/verifier/strategy EJBVerifier11.java
VerificationContext.java
Log:
BeanVerifier now uses the bean class loader during deployment
Revision Changes Path
1.19 +11 -9 jboss/src/main/org/jboss/verifier/strategy/EJBVerifier11.java
Index: EJBVerifier11.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/verifier/strategy/EJBVerifier11.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- EJBVerifier11.java 2000/09/30 07:38:43 1.18
+++ EJBVerifier11.java 2000/09/30 12:03:03 1.19
@@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* This package and its source code is available at www.jboss.org
- * $Id: EJBVerifier11.java,v 1.18 2000/09/30 07:38:43 juha Exp $
+ * $Id: EJBVerifier11.java,v 1.19 2000/09/30 12:03:03 oleg Exp $
*/
@@ -58,11 +58,11 @@
*
* @see org.jboss.verifier.strategy.AbstractVerifier
*
- * @author Juha Lindfors ([EMAIL PROTECTED])
+ * @author Juha Lindfors ([EMAIL PROTECTED])
* @author Aaron Mulder ([EMAIL PROTECTED])
*
- * @version $Revision: 1.18 $
- * @since JDK 1.3
+ * @version $Revision: 1.19 $
+ * @since JDK 1.3
*/
public class EJBVerifier11 extends AbstractVerifier {
@@ -78,12 +78,14 @@
*/
public EJBVerifier11(VerificationContext context) {
- URL[] list = { context.getJarLocation() };
+ this.classloader = context.getClassLoader();
+ if (this.classloader == null) {
+ URL[] list = { context.getJarLocation() };
+
+ ClassLoader parent = Thread.currentThread().getContextClassLoader();
+ this.classloader = new URLClassLoader(list, parent);
+ }
- ClassLoader parent = Thread.currentThread().getContextClassLoader();
- URLClassLoader cl = new URLClassLoader(list, parent);
-
- this.classloader = cl;
this.context = context;
this.factory = new DefaultEventFactory();
1.5 +9 -4
jboss/src/main/org/jboss/verifier/strategy/VerificationContext.java
Index: VerificationContext.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/verifier/strategy/VerificationContext.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- VerificationContext.java 2000/08/20 20:48:07 1.4
+++ VerificationContext.java 2000/09/30 12:03:03 1.5
@@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* This package and its source code is available at www.jboss.org
- * $Id: VerificationContext.java,v 1.4 2000/08/20 20:48:07 juha Exp $
+ * $Id: VerificationContext.java,v 1.5 2000/09/30 12:03:03 oleg Exp $
*
* You can reach the author by sending email to [EMAIL PROTECTED]
*/
@@ -46,9 +46,9 @@
*
* @see << OTHER RELATED CLASSES >>
*
- * @author Juha Lindfors
- * @version $Revision: 1.4 $
- * @since JDK 1.3
+ * @author Juha Lindfors
+ * @version $Revision: 1.5 $
+ * @since JDK 1.3
*/
public interface VerificationContext extends StrategyContext,
VerificationEventGenerator {
@@ -76,6 +76,11 @@
* Returns the location of the ejb jar file
*/
abstract URL getJarLocation();
+
+ /*
+ * Returns the class loader to use for verification (optionally)
+ */
+ abstract ClassLoader getClassLoader();
/*
* Returns EJB spec version string