[jboss-cvs] JBossAS SVN: r82033 - projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/access.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Dec 4 03:43:24 EST 2008
Author: alesj
Date: 2008-12-04 03:43:23 -0500 (Thu, 04 Dec 2008)
New Revision: 82033
Modified:
projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/access/ConstantsProvider.java
Log:
Expose CL.
Modified: projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/access/ConstantsProvider.java
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/access/ConstantsProvider.java 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/access/ConstantsProvider.java 2008-12-04 08:43:23 UTC (rev 82033)
@@ -51,13 +51,19 @@
this.configurator = configurator;
}
+ protected ClassLoader getClassLoader()
+ {
+ Thread thread = Thread.currentThread();
+ return thread.getContextClassLoader();
+ }
+
public void create() throws Throwable
{
if (configurator == null)
throw new IllegalArgumentException("Null configurator");
if (className != null)
- classInfo = configurator.getClassInfo(className, getClass().getClassLoader());
+ classInfo = configurator.getClassInfo(className, getClassLoader());
}
public Object getConstant(String constantName) throws Throwable
@@ -70,7 +76,7 @@
public Object getConstant(String className, String constantName) throws Throwable
{
- ClassInfo classInfo = configurator.getClassInfo(className, getClass().getClassLoader());
+ ClassInfo classInfo = configurator.getClassInfo(className, getClassLoader());
return getConstant(classInfo, constantName);
}
More information about the jboss-cvs-commits
mailing list