[Jboss-cvs] JBossAS SVN: r55123 - branches/MC_VDF_WORK/system/src/main/org/jboss/system/server
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Aug 3 14:31:31 EDT 2006
Author: scott.stark at jboss.org
Date: 2006-08-03 14:31:28 -0400 (Thu, 03 Aug 2006)
New Revision: 55123
Modified:
branches/MC_VDF_WORK/system/src/main/org/jboss/system/server/ServerLoader.java
Log:
Update the default Server impl to the profileservice/mc based version.
Modified: branches/MC_VDF_WORK/system/src/main/org/jboss/system/server/ServerLoader.java
===================================================================
--- branches/MC_VDF_WORK/system/src/main/org/jboss/system/server/ServerLoader.java 2006-08-03 18:29:45 UTC (rev 55122)
+++ branches/MC_VDF_WORK/system/src/main/org/jboss/system/server/ServerLoader.java 2006-08-03 18:31:28 UTC (rev 55123)
@@ -77,10 +77,10 @@
* proper libraries.
*/
public static final String DEFAULT_BOOT_LIBRARY_LIST =
- "log4j-boot.jar,jboss-common.jar,jboss-system.jar,jboss-xml-binding.jar,namespace.jar,jboss-container.jar,jboss-dependency.jar,jboss-microcontainer.jar";
+ "log4j-boot.jar,jboss-common.jar,jboss-system.jar,jboss-xml-binding.jar,jboss-container.jar,jboss-dependency.jar,jboss-microcontainer.jar";
/** The default server type. */
- public static final String DEFAULT_SERVER_TYPE = "org.jboss.system.server.ServerImpl";
+ public static final String DEFAULT_SERVER_TYPE = "org.jboss.system.server.profileservice.ServerImpl";
/**
* Configuration properties.
@@ -277,17 +277,18 @@
/**
* Construct a new instance of Server, loading all required classes from
- * the given ClossLoader.
+ * the given ClassLoader.
+ * @param typename - the fqcn of the Server implementation
+ * @param loader - the ClassLoader to load typename with
*/
- protected Server createServer(final String typename, final ClassLoader classLoader) throws Exception
+ protected Server createServer(final String typename, final ClassLoader loader)
+ throws Exception
{
// load the class first
- Class type = classLoader.loadClass(typename);
+ Class type = loader.loadClass(typename);
// and then create a new instance
Server server = (Server) type.newInstance();
-
- // here ya go
return server;
}
}
More information about the jboss-cvs-commits
mailing list