[jboss-cvs] JBossAS SVN: r100967 - in projects/ejb3/trunk/deployers: src/main/java/org/jboss/ejb3/deployers/metadata/processor and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Feb 15 09:15:35 EST 2010


Author: jaikiran
Date: 2010-02-15 09:15:34 -0500 (Mon, 15 Feb 2010)
New Revision: 100967

Added:
   projects/ejb3/trunk/deployers/src/main/java/org/jboss/ejb3/deployers/metadata/processor/JNDIBindingPolicyProcessorFactory.java
Modified:
   projects/ejb3/trunk/deployers/pom.xml
   projects/ejb3/trunk/deployers/src/main/resources/META-INF/ejb3-deployers-jboss-beans.xml
Log:
EJBTHREE-2015 Added org.jboss.metadata.process.processor.ejb.jboss.JNDIBindingPolicyProcessor to the set of default metadata post processors

Modified: projects/ejb3/trunk/deployers/pom.xml
===================================================================
--- projects/ejb3/trunk/deployers/pom.xml	2010-02-15 14:05:22 UTC (rev 100966)
+++ projects/ejb3/trunk/deployers/pom.xml	2010-02-15 14:15:34 UTC (rev 100967)
@@ -4,7 +4,7 @@
   <parent>
     <groupId>org.jboss.ejb3</groupId>
     <artifactId>jboss-ejb3-build</artifactId>
-    <version>1.0.9</version>
+    <version>1.0.10</version>
   </parent>
 
   <!-- Model Version -->

Added: projects/ejb3/trunk/deployers/src/main/java/org/jboss/ejb3/deployers/metadata/processor/JNDIBindingPolicyProcessorFactory.java
===================================================================
--- projects/ejb3/trunk/deployers/src/main/java/org/jboss/ejb3/deployers/metadata/processor/JNDIBindingPolicyProcessorFactory.java	                        (rev 0)
+++ projects/ejb3/trunk/deployers/src/main/java/org/jboss/ejb3/deployers/metadata/processor/JNDIBindingPolicyProcessorFactory.java	2010-02-15 14:15:34 UTC (rev 100967)
@@ -0,0 +1,51 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.ejb3.deployers.metadata.processor;
+
+import org.jboss.deployers.structure.spi.DeploymentUnit;
+import org.jboss.metadata.ejb.jboss.JBossMetaData;
+import org.jboss.metadata.process.processor.JBossMetaDataProcessor;
+import org.jboss.metadata.process.processor.ejb.jboss.JNDIBindingPolicyProcessor;
+
+/**
+ * {@link JNDIBindingPolicyProcessorFactory} is responsible for creating the
+ * {@link JNDIBindingPolicyProcessor} which will set the jndi-binding-policy on all
+ * beans in a deployment, if any user specified binding policy exists as a deployment
+ * level config. See https://jira.jboss.org/jira/browse/JBMETA-232
+ *
+ * @author Jaikiran Pai
+ * @version $Revision: $
+ */
+public class JNDIBindingPolicyProcessorFactory implements JBossMetaDataProcessorFactory<JBossMetaData>
+{
+
+   /**
+    * Returns a {@link JNDIBindingPolicyProcessor} 
+    * 
+    * @see org.jboss.ejb3.deployers.metadata.processor.JBossMetaDataProcessorFactory#create(org.jboss.deployers.structure.spi.DeploymentUnit)
+    */
+   public JBossMetaDataProcessor<JBossMetaData> create(DeploymentUnit deploymentUnit)
+   {
+      return new JNDIBindingPolicyProcessor();
+   }
+
+}

Modified: projects/ejb3/trunk/deployers/src/main/resources/META-INF/ejb3-deployers-jboss-beans.xml
===================================================================
--- projects/ejb3/trunk/deployers/src/main/resources/META-INF/ejb3-deployers-jboss-beans.xml	2010-02-15 14:05:22 UTC (rev 100966)
+++ projects/ejb3/trunk/deployers/src/main/resources/META-INF/ejb3-deployers-jboss-beans.xml	2010-02-15 14:15:34 UTC (rev 100967)
@@ -33,4 +33,8 @@
     <bean name="SetExplicitLocalJNDINameProcessorFactory" 
     class="org.jboss.ejb3.deployers.metadata.processor.SetExplicitLocalJNDINameProcessorFactory"/>
     
+    <!-- Processor factory for setting  the jndibinding policy for all beans in a deployment (JBMETA-232) -->
+    <bean name="JNDIBindingPolicyProcessorFactory" 
+    class="org.jboss.ejb3.deployers.metadata.processor.JNDIBindingPolicyProcessorFactory"/>
+    
 </deployment>
\ No newline at end of file




More information about the jboss-cvs-commits mailing list