[jboss-cvs] JBossAS SVN: r61805 - trunk/server/src/main/org/jboss/deployment/security.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Mar 28 14:16:01 EDT 2007
Author: anil.saldhana at jboss.com
Date: 2007-03-28 14:16:01 -0400 (Wed, 28 Mar 2007)
New Revision: 61805
Modified:
trunk/server/src/main/org/jboss/deployment/security/SecurityDeployer.java
Log:
use unit.getParent() to determine top-level status
Modified: trunk/server/src/main/org/jboss/deployment/security/SecurityDeployer.java
===================================================================
--- trunk/server/src/main/org/jboss/deployment/security/SecurityDeployer.java 2007-03-28 18:15:28 UTC (rev 61804)
+++ trunk/server/src/main/org/jboss/deployment/security/SecurityDeployer.java 2007-03-28 18:16:01 UTC (rev 61805)
@@ -49,7 +49,7 @@
public SecurityDeployer()
{
- this.setRelativeOrder(this.COMPONENT_DEPLOYER - 1);
+ this.setRelativeOrder(COMPONENT_DEPLOYER - 1);
}
public void setIgnoreSuffixes(HashSet<String> suffixSet)
@@ -60,8 +60,9 @@
@Override
public void deploy(DeploymentUnit unit ) throws DeploymentException
{
- if(JaccPolicyUtil.isTopLevelDeployment(unit) == false)
- return;
+ //Consider only the top level deployments for processing
+ if(unit.getParent() != null)
+ return;
//Ignore some of the extensions
String contextId = unit.getSimpleName();
@@ -90,8 +91,7 @@
//Now add this service bean to the unit
ServiceDeployment sd = new ServiceDeployment();
sd.setServices(services);
- unit.addAttachment("jboss.jaccpolicy", sd, ServiceDeployment.class);
- // policyUnit.addAttachment("jboss.jaccpolicy", jaccPolicy, .class);
+ unit.addAttachment("jboss.jaccpolicy", sd, ServiceDeployment.class);
}
@Override
More information about the jboss-cvs-commits
mailing list