[jboss-cvs] JBossAS SVN: r89259 - branches/Branch_5_x_BootstrapLegacyRemoval/system/src/main/org/jboss/system/server/profileservice.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu May 21 16:10:11 EDT 2009


Author: ALRubinger
Date: 2009-05-21 16:10:11 -0400 (Thu, 21 May 2009)
New Revision: 89259

Modified:
   branches/Branch_5_x_BootstrapLegacyRemoval/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java
Log:
[JBAS-6856] Proper type checking in ProfileServiceBootstrap

Modified: branches/Branch_5_x_BootstrapLegacyRemoval/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java
===================================================================
--- branches/Branch_5_x_BootstrapLegacyRemoval/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java	2009-05-21 18:55:56 UTC (rev 89258)
+++ branches/Branch_5_x_BootstrapLegacyRemoval/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java	2009-05-21 20:10:11 UTC (rev 89259)
@@ -40,7 +40,6 @@
 import org.jboss.bootstrap.spi.as.server.JBossASServer;
 import org.jboss.bootstrap.spi.mc.config.MCServerConfig;
 import org.jboss.bootstrap.spi.mc.server.MCServer;
-import org.jboss.bootstrap.spi.server.Server;
 import org.jboss.dependency.spi.ControllerContext;
 import org.jboss.dependency.spi.ControllerState;
 import org.jboss.deployers.client.spi.IncompleteDeploymentException;
@@ -403,7 +402,7 @@
     * @param server - the Bootstrap.start Server instance. This must be an
     * MCServer in order for there to be KernelDeployments available.
     */
-   protected void initBootstrapMDs(Server server)
+   protected void initBootstrapMDs(JBossASServer server)
    {
       if(mof == null || mgtDeploymentCreator == null)
       {
@@ -412,10 +411,10 @@
       }
 
       Map<String, KernelDeployment> serverDeployments = null;
-      if(server instanceof MCServer)
+      if(server instanceof JBossASServer)
       {
          // Build ManagedDeployments for the KernelDeployments
-         MCServer mcserver = MCServer.class.cast(server);
+         JBossASServer mcserver = JBossASServer.class.cast(server);
          Kernel kernel = mcserver.getKernel();
          serverDeployments = mcserver.getDeployments();
          ManagedDeployment firstDeployment = null;
@@ -557,7 +556,7 @@
             }
             // ServerConfig
             type = new ComponentType("MCBean", "ServerConfig");
-            MCServerConfig config = mcserver.getConfiguration();
+            JBossASServerConfig config = mcserver.getConfiguration();
             ManagedObject mo = mof.initManagedObject(config, null);
             ManagedComponentImpl configComp = new ManagedComponentImpl(type, firstDeployment, mo);
             firstDeployment.addComponent("ServerConfig", configComp);




More information about the jboss-cvs-commits mailing list