[jboss-cvs] JBossAS SVN: r61137 - trunk/system/src/main/org/jboss/system/server/profile/basic.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Mar 6 04:44:33 EST 2007
Author: scott.stark at jboss.org
Date: 2007-03-06 04:44:33 -0500 (Tue, 06 Mar 2007)
New Revision: 61137
Modified:
trunk/system/src/main/org/jboss/system/server/profile/basic/ProfileImpl.java
Log:
JBAS-4055, Enable the hotdeployEnabled checking to determine if modification deployments should be processed.
Modified: trunk/system/src/main/org/jboss/system/server/profile/basic/ProfileImpl.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profile/basic/ProfileImpl.java 2007-03-06 09:24:20 UTC (rev 61136)
+++ trunk/system/src/main/org/jboss/system/server/profile/basic/ProfileImpl.java 2007-03-06 09:44:33 UTC (rev 61137)
@@ -61,6 +61,8 @@
private LinkedHashMap<String,DeploymentContext> bootstraps = new LinkedHashMap<String,DeploymentContext>();
private LinkedHashMap<String,DeploymentContext> applications = new LinkedHashMap<String,DeploymentContext>();
private LinkedHashMap<String,DeploymentContext> deployers = new LinkedHashMap<String,DeploymentContext>();
+ /** Is hot deployment checking enabled */
+ private volatile boolean hotdeployEnabled;
public ProfileImpl(String profileRoot, String name)
{
@@ -258,6 +260,9 @@
public Collection<ModificationInfo> getModifiedDeployments()
throws Exception
{
+ if( hotdeployEnabled == false )
+ return Collections.emptyList();
+
ArrayList<ModificationInfo> modified = new ArrayList<ModificationInfo>();
Collection<DeploymentContext> apps = getApplications();
boolean trace = log.isTraceEnabled();
@@ -319,6 +324,7 @@
*/
public void enableModifiedDeploymentChecks(boolean flag)
{
+ this.hotdeployEnabled = flag;
}
public Collection<DeploymentContext> getDeployments(DeploymentPhase phase)
More information about the jboss-cvs-commits
mailing list