felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r331743 - /incubator/felix/trunk/framework/src/org/apache/felix/moduleloader/ModuleClassLoader.java
Date Tue, 08 Nov 2005 09:01:21 GMT
Author: rickhall
Date: Tue Nov  8 01:01:14 2005
New Revision: 331743

URL: http://svn.apache.org/viewcvs?rev=331743&view=rev
Log:
Added a simple method to compare the module class loader's module manager
to a specified one; this was necessary for the framework to determine from
which bundle in which framework instance does a class originate.

Modified:
    incubator/felix/trunk/framework/src/org/apache/felix/moduleloader/ModuleClassLoader.java

Modified: incubator/felix/trunk/framework/src/org/apache/felix/moduleloader/ModuleClassLoader.java
URL: http://svn.apache.org/viewcvs/incubator/felix/trunk/framework/src/org/apache/felix/moduleloader/ModuleClassLoader.java?rev=331743&r1=331742&r2=331743&view=diff
==============================================================================
--- incubator/felix/trunk/framework/src/org/apache/felix/moduleloader/ModuleClassLoader.java
(original)
+++ incubator/felix/trunk/framework/src/org/apache/felix/moduleloader/ModuleClassLoader.java
Tue Nov  8 01:01:14 2005
@@ -118,6 +118,20 @@
 
     /**
      * <p>
+     * This method is only used by a framework instance so that it can determine
+     * if a given module class loader is for a module of a bundle inside of it;
+     * this is used for the URL Handlers service implementation.
+     * </p>
+     * @return <tt>true</tt> if the specified module manager is the same as
+     *         the one associated with this module class loader.
+    **/
+    public boolean isModuleManagerEqual(ModuleManager mgr)
+    {
+        return m_mgr == mgr;
+    }
+
+    /**
+     * <p>
      * This method is nearly an exact copy of the ClassLoader.loadClass()
      * method. The main difference is that it delegates to its associated
      * <tt>ModuleManager</tt>'s search policy before calling the



Mime
View raw message