[jboss-cvs] JBossAS SVN: r72228 - trunk/system-jmx/src/main/org/jboss/deployment.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 15 09:17:15 EDT 2008


Author: adrian at jboss.org
Date: 2008-04-15 09:17:15 -0400 (Tue, 15 Apr 2008)
New Revision: 72228

Removed:
   trunk/system-jmx/src/main/org/jboss/deployment/ClasspathExtension.java
   trunk/system-jmx/src/main/org/jboss/deployment/ClasspathExtensionMBean.java
Log:
[JBAS-5447] - Remove ClassPathExtension MBean

Deleted: trunk/system-jmx/src/main/org/jboss/deployment/ClasspathExtension.java
===================================================================
--- trunk/system-jmx/src/main/org/jboss/deployment/ClasspathExtension.java	2008-04-15 13:16:45 UTC (rev 72227)
+++ trunk/system-jmx/src/main/org/jboss/deployment/ClasspathExtension.java	2008-04-15 13:17:15 UTC (rev 72228)
@@ -1,121 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.deployment;
-
-import java.net.URL;
-import javax.management.ObjectName;
-import org.jboss.mx.loading.LoaderRepositoryFactory;
-import org.jboss.mx.loading.RepositoryClassLoader;
-import org.jboss.system.ServiceMBeanSupport;
-
-
-/** A service that allows one to add an arbitrary URL to a named LoaderRepository. 
- *
- * Created: Sun Jun 30 13:17:22 2002
- *
- * @author <a href="mailto:d_jencks at users.sourceforge.net">David Jencks</a>
- * @version $Revision$
- *
- * @jmx:mbean name="jboss:type=Service,service=ClasspathExtension"
- *            extends="org.jboss.system.ServiceMBean"
- */
-public class ClasspathExtension
-   extends ServiceMBeanSupport
-   implements ClasspathExtensionMBean
-{
-   private String metadataURL;
-   private ObjectName loaderRepository;
-   private RepositoryClassLoader ucl;
-
-   public ClasspathExtension() 
-   {
-      
-   }
-
-   /**
-    * mbean get-set pair for field metadataURL
-    * Get the value of metadataURL
-    * @return value of metadataURL
-    *
-    * @jmx:managed-attribute
-    */
-   public String getMetadataURL()
-   {
-      return metadataURL;
-   }
-
-   /**
-    * Set the value of metadataURL
-    * @param metadataURL  Value to assign to metadataURL
-    *
-    * @jmx:managed-attribute
-    */
-   public void setMetadataURL(String metadataURL)
-   {
-      this.metadataURL = metadataURL;
-   }
-
-   /**
-    * mbean get-set pair for field loaderRepository
-    * Get the value of loaderRepository
-    * @return value of loaderRepository
-    *
-    * @jmx:managed-attribute
-    */
-   public ObjectName getLoaderRepository()
-   {
-      return loaderRepository;
-   }
-   
-   
-   /**
-    * Set the value of loaderRepository
-    * @param loaderRepository  Value to assign to loaderRepository
-    *
-    * @jmx:managed-attribute
-    */
-   public void setLoaderRepository(ObjectName loaderRepository)
-   {
-      this.loaderRepository = loaderRepository;
-   }
-
-   protected void createService() throws Exception
-   {
-      if (metadataURL != null) 
-      {
-         URL url = new URL(metadataURL);
-         if( loaderRepository == null )
-            loaderRepository = LoaderRepositoryFactory.DEFAULT_LOADER_REPOSITORY;
-         Object[] args = {url, url, Boolean.TRUE};
-         String[] sig = {"java.net.URL", "java.net.URL", "boolean"};
-         ucl = (RepositoryClassLoader) server.invoke(loaderRepository,
-            "newClassLoader",args, sig);
-      } // end of if ()
-   }
-
-   protected void destroyService() throws Exception
-   {
-      if (ucl != null) 
-         ucl.unregister();
-   }
-
-}// ClasspathExtension

Deleted: trunk/system-jmx/src/main/org/jboss/deployment/ClasspathExtensionMBean.java
===================================================================
--- trunk/system-jmx/src/main/org/jboss/deployment/ClasspathExtensionMBean.java	2008-04-15 13:16:45 UTC (rev 72227)
+++ trunk/system-jmx/src/main/org/jboss/deployment/ClasspathExtensionMBean.java	2008-04-15 13:17:15 UTC (rev 72228)
@@ -1,56 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.deployment;
-
-/**
- * MBean interface.
- */
-public interface ClasspathExtensionMBean extends org.jboss.system.ServiceMBean {
-
-   //default object name
-   public static final javax.management.ObjectName OBJECT_NAME = org.jboss.mx.util.ObjectNameFactory.create("jboss:type=Service,service=ClasspathExtension");
-
-   /**
-    * mbean get-set pair for field metadataURL Get the value of metadataURL
-    * @return value of metadataURL
-    */
-  java.lang.String getMetadataURL() ;
-
-   /**
-    * Set the value of metadataURL
-    * @param metadataURL Value to assign to metadataURL
-    */
-  void setMetadataURL(java.lang.String metadataURL) ;
-
-   /**
-    * mbean get-set pair for field loaderRepository Get the value of loaderRepository
-    * @return value of loaderRepository
-    */
-  javax.management.ObjectName getLoaderRepository() ;
-
-   /**
-    * Set the value of loaderRepository
-    * @param loaderRepository Value to assign to loaderRepository
-    */
-  void setLoaderRepository(javax.management.ObjectName loaderRepository) ;
-
-}




More information about the jboss-cvs-commits mailing list