[jboss-cvs] JBossAS SVN: r62559 - trunk/server/src/main/org/jboss/deployment.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Apr 25 11:11:19 EDT 2007
Author: anil.saldhana at jboss.com
Date: 2007-04-25 11:11:19 -0400 (Wed, 25 Apr 2007)
New Revision: 62559
Modified:
trunk/server/src/main/org/jboss/deployment/JBossAppParsingDeployer.java
Log:
JBAS-4319: unauthenticated identity
Modified: trunk/server/src/main/org/jboss/deployment/JBossAppParsingDeployer.java
===================================================================
--- trunk/server/src/main/org/jboss/deployment/JBossAppParsingDeployer.java 2007-04-25 15:10:11 UTC (rev 62558)
+++ trunk/server/src/main/org/jboss/deployment/JBossAppParsingDeployer.java 2007-04-25 15:11:19 UTC (rev 62559)
@@ -28,14 +28,14 @@
import org.jboss.deployers.spi.deployer.DeploymentUnit;
import org.jboss.mx.loading.LoaderRepositoryFactory;
import org.jboss.mx.loading.LoaderRepositoryFactory.LoaderRepositoryConfig;
-import org.jboss.xb.binding.ObjectModelFactory;
-import org.w3c.dom.Element;
+import org.jboss.xb.binding.ObjectModelFactory;
/**
* An ObjectModelFactoryDeployer for translating jboss-app.xml descriptors into
* J2eeApplicationMetaData instances.
*
* @author Scott.Stark at jboss.org
+ * @author Anil.Saldhana at redhat.com
* @version $Revision$
*/
public class JBossAppParsingDeployer extends ObjectModelFactoryDeployer<J2eeApplicationMetaData>
@@ -46,6 +46,8 @@
private boolean isolated = false;
private boolean callByValue = false;
+
+ private String unauthenticatedIdentity = null;
/**
* Set the relative order to PARSER_DEPLOYER+1 by default so
@@ -111,8 +113,26 @@
{
this.callByValue = callByValue;
}
+
+ /**
+ * Obtain an unauthenticated identity
+ * @return
+ */
+ public String getUnauthenticatedIdentity()
+ {
+ return unauthenticatedIdentity;
+ }
/**
+ * Specify an unauthenticated identity
+ * @param unauthenticatedIdentity
+ */
+ public void setUnauthenticatedIdentity(String unauthenticatedIdentity)
+ {
+ this.unauthenticatedIdentity = unauthenticatedIdentity;
+ }
+
+ /**
* Overriden to indicate we expect to run the parse even if an existing
* J2eeApplicationMetaData attachment is found.
* @return true.
@@ -158,6 +178,9 @@
// Pass the ear callByValue setting
if (callByValue)
unit.addAttachment("EAR.callByValue", Boolean.TRUE, Boolean.class);
+ //Pass the unauthenticated identity
+ if(this.unauthenticatedIdentity != null)
+ unit.addAttachment("EAR.uauthenticatedIdentity", this.unauthenticatedIdentity, String.class);
}
/** Build the ear scoped repository
More information about the jboss-cvs-commits
mailing list