[jboss-cvs] JBossAS SVN: r80658 - trunk/system/src/main/org/jboss/system/server/profileservice.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Nov 7 09:28:04 EST 2008
Author: scott.stark at jboss.org
Date: 2008-11-07 09:28:04 -0500 (Fri, 07 Nov 2008)
New Revision: 80658
Modified:
trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java
Log:
JBAS-5689, get access to the bootstrap KernelDeployments
Modified: trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java 2008-11-07 13:40:54 UTC (rev 80657)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceBootstrap.java 2008-11-07 14:28:04 UTC (rev 80658)
@@ -22,10 +22,12 @@
package org.jboss.system.server.profileservice;
import java.util.Collection;
+import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;
import org.jboss.bootstrap.spi.Bootstrap;
import org.jboss.bootstrap.spi.Server;
+import org.jboss.bootstrap.spi.microcontainer.MCServer;
import org.jboss.dependency.spi.ControllerContext;
import org.jboss.deployers.client.spi.IncompleteDeploymentException;
import org.jboss.deployers.client.spi.main.MainDeployer;
@@ -34,6 +36,7 @@
import org.jboss.deployers.vfs.spi.client.VFSDeployment;
import org.jboss.kernel.Kernel;
import org.jboss.kernel.spi.dependency.KernelController;
+import org.jboss.kernel.spi.deployment.KernelDeployment;
import org.jboss.logging.Logger;
import org.jboss.managed.api.ManagedDeployment.DeploymentPhase;
import org.jboss.profileservice.spi.Profile;
@@ -122,10 +125,14 @@
this.kernel = kernel;
}
- public void start(Server server) throws Exception
+ /**
+ *
+ */
+ public void start(Server server)
+ throws Exception
{
shutdown.set(false);
-
+
if(profileService == null)
throw new IllegalStateException("The ProfileService has not been injected");
log.debug("Using ProfileService: " + profileService);
@@ -136,6 +143,13 @@
// Validate that everything is ok
mainDeployer.checkComplete();
+ // TODO: JBAS-5689 Expose the bootstrap ManagedDeployments...
+ Map<String, KernelDeployment> serverDeployments = null;
+ if(server instanceof MCServer)
+ {
+ MCServer mcserver = MCServer.class.cast(server);
+ serverDeployments = mcserver.getDeployments();
+ }
// Load the profile beans
try
More information about the jboss-cvs-commits
mailing list