geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject svn commit: r125807 - /geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/MBeanServerDelegate.java
Date Thu, 20 Jan 2005 20:00:34 GMT
Author: jboynes
Date: Thu Jan 20 12:00:32 2005
New Revision: 125807

URL: http://svn.apache.org/viewcvs?view=rev&rev=125807
Log:
applied modified patch for GERONIMO-540 from Jason Zou
Modified:
   geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/MBeanServerDelegate.java

Modified: geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/MBeanServerDelegate.java
Url: http://svn.apache.org/viewcvs/geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/MBeanServerDelegate.java?view=diff&rev=125807&p1=geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/MBeanServerDelegate.java&r1=125806&p2=geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/MBeanServerDelegate.java&r2=125807
==============================================================================
--- geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/MBeanServerDelegate.java
(original)
+++ geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/MBeanServerDelegate.java
Thu Jan 20 12:00:32 2005
@@ -326,7 +326,19 @@
     }
 
     public ClassLoaderRepository getClassLoaderRepository() {
-        throw new SecurityException("Operation not allowed");
+        return new ClassLoaderRepository() {
+            public Class loadClass(String className) throws ClassNotFoundException {
+                throw new ClassNotFoundException(className);
+            }
+
+            public Class loadClassWithout(ClassLoader loader, String className) throws ClassNotFoundException
{
+                throw new ClassNotFoundException(className);
+            }
+
+            public Class loadClassBefore(ClassLoader loader, String className) throws ClassNotFoundException
{
+                throw new ClassNotFoundException(className);
+            }
+        };
     }
 
     public void unregisterMBean(ObjectName objectName) throws InstanceNotFoundException,
MBeanRegistrationException {

Mime
View raw message