[jboss-svn-commits] JBL Code SVN: r10321 - labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/common.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sun Mar 18 19:00:45 EDT 2007


Author: kevin.conner at jboss.com
Date: 2007-03-18 19:00:45 -0400 (Sun, 18 Mar 2007)
New Revision: 10321

Removed:
   labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/common/Factory.java
Log:
Removed Factory class

Deleted: labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/common/Factory.java
===================================================================
--- labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/common/Factory.java	2007-03-18 23:00:32 UTC (rev 10320)
+++ labs/jbossesb/trunk/product/core/rosetta/src/org/jboss/soa/esb/common/Factory.java	2007-03-18 23:00:45 UTC (rev 10321)
@@ -1,58 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, 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.soa.esb.common;
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.Priority;
-/**
- * Base class to find a class on the classpath.
- * 
- * @author kurt.stam at redhat.com
- *
- */
-public abstract class Factory 
-{
-	private static Logger logger = Logger.getLogger(Factory.class);
-	/**
-	 * Loads the class with the given name.
-	 * @param className - the className to be found
-	 * @return - the class
-	 * @throws ClassNotFoundException
-	 */
-	protected static Class getClassForName(String className) throws ClassNotFoundException
-	{
-		Class clazz = null;
-		try {
-			logger.log(Priority.DEBUG, "Using the Context ClassLoader");
-			ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
-			clazz = Class.forName(className, true, contextClassLoader);
-		} catch (ClassNotFoundException classNotFound) {
-			if (logger.isDebugEnabled()) {
-				logger.log(Priority.WARN, "The Context ClassLoader could not find the class.");
-				logger.log(Priority.WARN, "Using the System ClassLoader");
-			}
-			ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
-			clazz = Class.forName(className, true, systemClassLoader);
-		}
-		return clazz;
-	}
-}




More information about the jboss-svn-commits mailing list