openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1133291 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ExtensionLoader.java
Date Wed, 08 Jun 2011 08:53:20 GMT
Author: dblevins
Date: Wed Jun  8 08:53:19 2011
New Revision: 1133291

URL: http://svn.apache.org/viewvc?rev=1133291&view=rev
Log:
Allow the respective classloader to be passed in for extension loading

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ExtensionLoader.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ExtensionLoader.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ExtensionLoader.java?rev=1133291&r1=1133290&r2=1133291&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ExtensionLoader.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ExtensionLoader.java
Wed Jun  8 08:53:19 2011
@@ -77,7 +77,16 @@ public class ExtensionLoader
      */
     public void loadExtensionServices()
     {
-        ServiceLoader<Extension> loader = ServiceLoader.load(Extension.class, WebBeansUtil.getCurrentClassLoader());
+        loadExtensionServices(WebBeansUtil.getCurrentClassLoader());
+    }
+
+    /**
+     * Load extension services.
+     * @param classLoader
+     */
+    public void loadExtensionServices(ClassLoader classLoader)
+    {
+        ServiceLoader<Extension> loader = ServiceLoader.load(Extension.class, classLoader);
         Iterator<Extension> iterator = loader.iterator();
         while(iterator.hasNext())
         {



Mime
View raw message