[jboss-cvs] JBossAS SVN: r67824 - projects/ejb3/trunk/ejb3-ext-api/src/main/java/org/jboss/ejb3/jndipolicy.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Dec 3 19:29:46 EST 2007


Author: ALRubinger
Date: 2007-12-03 19:29:46 -0500 (Mon, 03 Dec 2007)
New Revision: 67824

Added:
   projects/ejb3/trunk/ejb3-ext-api/src/main/java/org/jboss/ejb3/jndipolicy/DefaultJndiBindingPolicy.java
   projects/ejb3/trunk/ejb3-ext-api/src/main/java/org/jboss/ejb3/jndipolicy/Ejb3DeploymentSummary.java
Log:
[EJBTHREE-1145] Replaced JNDI Policy Sources w/ SVN Histories intact

Added: projects/ejb3/trunk/ejb3-ext-api/src/main/java/org/jboss/ejb3/jndipolicy/DefaultJndiBindingPolicy.java
===================================================================
--- projects/ejb3/trunk/ejb3-ext-api/src/main/java/org/jboss/ejb3/jndipolicy/DefaultJndiBindingPolicy.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-ext-api/src/main/java/org/jboss/ejb3/jndipolicy/DefaultJndiBindingPolicy.java	2007-12-04 00:29:46 UTC (rev 67824)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jndipolicy;
+
+import org.jboss.ejb3.Ejb3DeploymentSummary;
+
+/**
+ * Defines the contract required for implementations of a default JNDI binding policy
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+public interface DefaultJndiBindingPolicy
+{
+   /**
+    * Returns the JNDI name that should be assigned to this deployment
+    * based on the information contained in the specified summary
+    * 
+    * @param summary
+    * @return
+    */
+   String getJndiName(Ejb3DeploymentSummary summary);
+   
+   String getDefaultRemoteJndiName(Ejb3DeploymentSummary summary);
+
+   String getDefaultRemoteHomeJndiName(Ejb3DeploymentSummary summary);
+
+   String getDefaultLocalHomeJndiName(Ejb3DeploymentSummary summary);
+
+   String getDefaultLocalJndiName(Ejb3DeploymentSummary summary);
+}


Property changes on: projects/ejb3/trunk/ejb3-ext-api/src/main/java/org/jboss/ejb3/jndipolicy/DefaultJndiBindingPolicy.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: projects/ejb3/trunk/ejb3-ext-api/src/main/java/org/jboss/ejb3/jndipolicy/Ejb3DeploymentSummary.java
===================================================================
--- projects/ejb3/trunk/ejb3-ext-api/src/main/java/org/jboss/ejb3/jndipolicy/Ejb3DeploymentSummary.java	                        (rev 0)
+++ projects/ejb3/trunk/ejb3-ext-api/src/main/java/org/jboss/ejb3/jndipolicy/Ejb3DeploymentSummary.java	2007-12-04 00:29:46 UTC (rev 67824)
@@ -0,0 +1,136 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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;
+
+import java.io.Serializable;
+
+/**
+ * Summary of an EJB3 deployment in flat properties; used in 
+ * determining default JNDI Bindings by a JNDI Binding Policy
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+public class Ejb3DeploymentSummary implements Serializable
+{
+   // Instance Members
+
+   private String deploymentName;
+   
+   private String deploymentScopeBaseName;
+   
+   private String ejbName;
+   
+   private Class<?> beanClass;
+   
+   private boolean isLocal;
+   
+   private boolean isStateful;
+   
+   private boolean isHome;
+   
+   private boolean isService;
+   
+   // Accessors / Mutators
+
+   public String getDeploymentName()
+   {
+      return deploymentName;
+   }
+
+   public void setDeploymentName(String deploymentName)
+   {
+      this.deploymentName = deploymentName;
+   }
+
+   public String getEjbName()
+   {
+      return ejbName;
+   }
+
+   public void setEjbName(String ejbName)
+   {
+      this.ejbName = ejbName;
+   }
+
+   public boolean isLocal()
+   {
+      return isLocal;
+   }
+
+   public void setLocal(boolean isLocal)
+   {
+      this.isLocal = isLocal;
+   }
+
+   public boolean isStateful()
+   {
+      return isStateful;
+   }
+
+   public void setStateful(boolean isStateful)
+   {
+      this.isStateful = isStateful;
+   }
+
+   public boolean isHome()
+   {
+      return isHome;
+   }
+
+   public void setHome(boolean isHome)
+   {
+      this.isHome = isHome;
+   }
+
+   public boolean isService()
+   {
+      return isService;
+   }
+
+   public void setService(boolean isService)
+   {
+      this.isService = isService;
+   }
+
+   public String getDeploymentScopeBaseName()
+   {
+      return deploymentScopeBaseName;
+   }
+
+   public void setDeploymentScopeBaseName(String deploymentScopeBaseName)
+   {
+      this.deploymentScopeBaseName = deploymentScopeBaseName;
+   }
+
+   public Class<?> getBeanClass()
+   {
+      return beanClass;
+   }
+
+   public void setBeanClass(Class<?> beanClass)
+   {
+      this.beanClass = beanClass;
+   }
+   
+   
+}


Property changes on: projects/ejb3/trunk/ejb3-ext-api/src/main/java/org/jboss/ejb3/jndipolicy/Ejb3DeploymentSummary.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain




More information about the jboss-cvs-commits mailing list