[jboss-cvs] JBossAS SVN: r72208 - in trunk/server/src/main/org/jboss/deployment: plugin and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 15 06:23:38 EDT 2008


Author: scott.stark at jboss.org
Date: 2008-04-15 06:23:38 -0400 (Tue, 15 Apr 2008)
New Revision: 72208

Added:
   trunk/server/src/main/org/jboss/deployment/plugin/
   trunk/server/src/main/org/jboss/deployment/plugin/MappedDeploymentEndpointResolver.java
   trunk/server/src/main/org/jboss/deployment/spi/
   trunk/server/src/main/org/jboss/deployment/spi/DeploymentEndpointResolver.java
   trunk/server/src/main/org/jboss/deployment/spi/EndpointInfo.java
   trunk/server/src/main/org/jboss/deployment/spi/EndpointType.java
Removed:
   trunk/server/src/main/org/jboss/deployment/plugin/MappedDeploymentEndpointResolver.java
   trunk/server/src/main/org/jboss/deployment/spi/DeploymentEndpointResolver.java
   trunk/server/src/main/org/jboss/deployment/spi/EndpointInfo.java
   trunk/server/src/main/org/jboss/deployment/spi/EndpointType.java
Log:
Update the resolver functionality

Copied: trunk/server/src/main/org/jboss/deployment/plugin (from rev 72011, branches/InjectionPrototype/server/src/main/org/jboss/deployment/plugin)

Deleted: trunk/server/src/main/org/jboss/deployment/plugin/MappedDeploymentEndpointResolver.java
===================================================================
--- branches/InjectionPrototype/server/src/main/org/jboss/deployment/plugin/MappedDeploymentEndpointResolver.java	2008-04-11 09:37:12 UTC (rev 72011)
+++ trunk/server/src/main/org/jboss/deployment/plugin/MappedDeploymentEndpointResolver.java	2008-04-15 10:23:38 UTC (rev 72208)
@@ -1,133 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * 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.deployment.plugin;
-
-import java.util.Map;
-
-import org.jboss.deployers.structure.spi.DeploymentUnit;
-import org.jboss.deployment.dependency.ContainerDependencyMetaData;
-import org.jboss.deployment.spi.DeploymentEndpointResolver;
-import org.jboss.deployment.spi.EndpointInfo;
-import org.jboss.deployment.spi.EndpointType;
-import org.jboss.logging.Logger;
-
-/**
- * A DeploymentEndpointResolver implementation that relies on the endpoint
- * map produced by the MappedReferenceMetaDataResolverDeployer
- * 
- * @author Scott.Stark at jboss.org
- * @version $Revision:$
- */
-public class MappedDeploymentEndpointResolver implements
-      DeploymentEndpointResolver
-{
-   private static Logger log = Logger.getLogger(MappedDeploymentEndpointResolver.class);
-   /** The deployment wide reference map */
-   private Map<String, ContainerDependencyMetaData> endpointMap;
-   private Map<String, String> endpointAlternateMap;
-
-   public MappedDeploymentEndpointResolver(Map<String, ContainerDependencyMetaData> endpointMap,
-         Map<String, String> endpointAlternateMap,
-         String unitPath)
-   {
-      this.endpointMap = endpointMap;
-      this.endpointAlternateMap = endpointAlternateMap;
-   }
-
-   /**
-    * @param businessIntf
-    * @param type - 
-    * @param vfsContext - The path of the unit this resolver is associated with. Used as the
-    * starting point for link resolution.
-    * 
-    */
-   public EndpointInfo getEndpointInfo(Class businessIntf, String type, String vfsContext)
-   {
-      // First look for a unit specific mapping
-      String altKey = "ejb/" + vfsContext + "@" + businessIntf.getName();
-      String key = this.endpointAlternateMap.get(altKey);
-      if(key == null)
-      {
-         // Look for a top level binding
-         altKey = "ejb/@"  + businessIntf;
-         key = this.endpointAlternateMap.get(altKey);
-      }
-      EndpointInfo info = null;
-      if(key != null)
-      {
-         ContainerDependencyMetaData cdmd = endpointMap.get(key);
-         info = new EndpointInfo(cdmd.getDeploymentPath(), cdmd.getComponentName(), type);
-      }
-      return info;
-   }
-
-   /* (non-Javadoc)
-    * @see org.jboss.deployment.spi.DeploymentEndpointResolver#getEndpointInfo(java.lang.String, org.jboss.deployment.spi.EndpointType)
-    */
-   public EndpointInfo getEndpointInfo(String ref, String type, String vfsContext)
-   {
-      String prefix = type;
-      // Parse the ref to obtain the path and endpoint name
-      String unitPath = vfsContext;
-      String endpointName = ref;
-      if (ref.indexOf('#') != -1)
-      {
-         // <ejb-link> is of the form relative-path/file.jar#Bean
-         String path = ref.substring(0, ref.indexOf('#'));
-         // resolve any ../* prefix
-         if(path.startsWith("../"))
-         {
-            String[] deploymentPaths = unitPath.split("/");
-            int count = 0;
-            while(path.startsWith("../"))
-            {
-               path = path.substring(3);
-               count ++;
-            }
-            // build the relative path from the root
-            String rootPath = "";
-            for(int n = 0; n < (deploymentPaths.length - count); n ++)
-               rootPath += deploymentPaths + "/";
-            unitPath = rootPath + path;
-         }
-         // 
-         // Get the endpoint name
-         endpointName = ref.substring(ref.indexOf('#') + 1);
-      }
-
-      EndpointInfo info = null;
-      String key = prefix + "/" + unitPath +"#" + endpointName;
-      ContainerDependencyMetaData cdmd = endpointMap.get(key);
-      if(cdmd != null)
-      {
-         info = new EndpointInfo(unitPath, endpointName, type);
-      }
-      else
-      {
-         log.debug("Failed to find mapping for ref: "+ref+" path: "+vfsContext);
-         if(log.isTraceEnabled())
-            log.trace("Available keys: "+endpointMap.keySet());
-      }
-      return info;
-   }
-
-}

Copied: trunk/server/src/main/org/jboss/deployment/plugin/MappedDeploymentEndpointResolver.java (from rev 72168, branches/InjectionPrototype/server/src/main/org/jboss/deployment/plugin/MappedDeploymentEndpointResolver.java)
===================================================================
--- trunk/server/src/main/org/jboss/deployment/plugin/MappedDeploymentEndpointResolver.java	                        (rev 0)
+++ trunk/server/src/main/org/jboss/deployment/plugin/MappedDeploymentEndpointResolver.java	2008-04-15 10:23:38 UTC (rev 72208)
@@ -0,0 +1,133 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * 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.deployment.plugin;
+
+import java.util.Map;
+
+import org.jboss.deployers.structure.spi.DeploymentUnit;
+import org.jboss.deployment.dependency.ContainerDependencyMetaData;
+import org.jboss.deployment.spi.DeploymentEndpointResolver;
+import org.jboss.deployment.spi.EndpointInfo;
+import org.jboss.deployment.spi.EndpointType;
+import org.jboss.logging.Logger;
+
+/**
+ * A DeploymentEndpointResolver implementation that relies on the endpoint
+ * map produced by the MappedReferenceMetaDataResolverDeployer
+ * 
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public class MappedDeploymentEndpointResolver implements
+      DeploymentEndpointResolver
+{
+   private static Logger log = Logger.getLogger(MappedDeploymentEndpointResolver.class);
+   /** The deployment wide reference map */
+   private Map<String, ContainerDependencyMetaData> endpointMap;
+   private Map<String, String> endpointAlternateMap;
+
+   public MappedDeploymentEndpointResolver(Map<String, ContainerDependencyMetaData> endpointMap,
+         Map<String, String> endpointAlternateMap,
+         String unitPath)
+   {
+      this.endpointMap = endpointMap;
+      this.endpointAlternateMap = endpointAlternateMap;
+   }
+
+   /**
+    * @param businessIntf
+    * @param type - 
+    * @param vfsContext - The path of the unit this resolver is associated with. Used as the
+    * starting point for link resolution.
+    * 
+    */
+   public EndpointInfo getEndpointInfo(Class businessIntf, String type, String vfsContext)
+   {
+      // First look for a unit specific mapping
+      String altKey = "ejb/" + vfsContext + "@" + businessIntf.getName();
+      String key = this.endpointAlternateMap.get(altKey);
+      if(key == null)
+      {
+         // Look for a top level binding
+         altKey = "ejb@"  + businessIntf.getName();
+         key = this.endpointAlternateMap.get(altKey);
+      }
+      EndpointInfo info = null;
+      if(key != null)
+      {
+         ContainerDependencyMetaData cdmd = endpointMap.get(key);
+         info = new EndpointInfo(cdmd.getDeploymentPath(), cdmd.getComponentName(), type);
+      }
+      return info;
+   }
+
+   /* (non-Javadoc)
+    * @see org.jboss.deployment.spi.DeploymentEndpointResolver#getEndpointInfo(java.lang.String, org.jboss.deployment.spi.EndpointType)
+    */
+   public EndpointInfo getEndpointInfo(String ref, String type, String vfsContext)
+   {
+      String prefix = type;
+      // Parse the ref to obtain the path and endpoint name
+      String unitPath = vfsContext;
+      String endpointName = ref;
+      if (ref.indexOf('#') != -1)
+      {
+         // <ejb-link> is of the form relative-path/file.jar#Bean
+         String path = ref.substring(0, ref.indexOf('#'));
+         // resolve any ../* prefix
+         if(path.startsWith("../"))
+         {
+            String[] deploymentPaths = unitPath.split("/");
+            int count = 0;
+            while(path.startsWith("../"))
+            {
+               path = path.substring(3);
+               count ++;
+            }
+            // build the relative path from the root
+            String rootPath = "";
+            for(int n = 0; n < (deploymentPaths.length - count); n ++)
+               rootPath += deploymentPaths + "/";
+            unitPath = rootPath + path;
+         }
+         // 
+         // Get the endpoint name
+         endpointName = ref.substring(ref.indexOf('#') + 1);
+      }
+
+      EndpointInfo info = null;
+      String key = prefix + "/" + unitPath +"#" + endpointName;
+      ContainerDependencyMetaData cdmd = endpointMap.get(key);
+      if(cdmd != null)
+      {
+         info = new EndpointInfo(unitPath, endpointName, type);
+      }
+      else
+      {
+         log.debug("Failed to find mapping for ref: "+ref+" path: "+vfsContext);
+         if(log.isTraceEnabled())
+            log.trace("Available keys: "+endpointMap.keySet());
+      }
+      return info;
+   }
+
+}

Copied: trunk/server/src/main/org/jboss/deployment/spi (from rev 72011, branches/InjectionPrototype/server/src/main/org/jboss/deployment/spi)

Deleted: trunk/server/src/main/org/jboss/deployment/spi/DeploymentEndpointResolver.java
===================================================================
--- branches/InjectionPrototype/server/src/main/org/jboss/deployment/spi/DeploymentEndpointResolver.java	2008-04-11 09:37:12 UTC (rev 72011)
+++ trunk/server/src/main/org/jboss/deployment/spi/DeploymentEndpointResolver.java	2008-04-15 10:23:38 UTC (rev 72208)
@@ -1,54 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * 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.deployment.spi;
-
-/**
- * An interface for resolving deployment endpoints by reference name or
- * interface type.
- * 
- * @author Scott.Stark at jboss.org
- * @version $Revision:$
- */
-public interface DeploymentEndpointResolver
-{
-   /**
-    * Find the deployment endpoint info for the given business interface and
-    * expected endpoint type.
-    * 
-    * @param businessIntf - the interface the endpoint should implement
-    * @param endpointType - the type of endpoint
-    * @return the matching endpoint info if found, null otherwise
-    */
-   EndpointInfo getEndpointInfo(Class businessIntf, String endpointType, String vfsContext);
-
-   /**
-    * Find the deployment endpoint for the given reference name. This may be
-    * relative name qualified by a path prefix, or just the endpoint name.
-    * 
-    * @param ref - relative or exact endpoint name
-    * @param endpointType the type of endpoint
-    * @return the matching endpoint info if found, null otherwise
-    * @see EndpointType
-    */
-   EndpointInfo getEndpointInfo(String ref, String endpointType, String vfsContext);
-   
-}

Copied: trunk/server/src/main/org/jboss/deployment/spi/DeploymentEndpointResolver.java (from rev 72168, branches/InjectionPrototype/server/src/main/org/jboss/deployment/spi/DeploymentEndpointResolver.java)
===================================================================
--- trunk/server/src/main/org/jboss/deployment/spi/DeploymentEndpointResolver.java	                        (rev 0)
+++ trunk/server/src/main/org/jboss/deployment/spi/DeploymentEndpointResolver.java	2008-04-15 10:23:38 UTC (rev 72208)
@@ -0,0 +1,54 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * 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.deployment.spi;
+
+/**
+ * An interface for resolving deployment endpoints by reference name or
+ * interface type.
+ * 
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public interface DeploymentEndpointResolver
+{
+   /**
+    * Find the deployment endpoint info for the given business interface and
+    * expected endpoint type.
+    * 
+    * @param businessIntf - the interface the endpoint should implement
+    * @param endpointType - the type of endpoint
+    * @return the matching endpoint info if found, null otherwise
+    */
+   EndpointInfo getEndpointInfo(Class businessIntf, String endpointType, String vfsContext);
+
+   /**
+    * Find the deployment endpoint for the given reference name. This may be
+    * relative name qualified by a path prefix, or just the endpoint name.
+    * 
+    * @param ref - relative or exact endpoint name
+    * @param endpointType the type of endpoint
+    * @return the matching endpoint info if found, null otherwise
+    * @see EndpointType
+    */
+   EndpointInfo getEndpointInfo(String ref, String endpointType, String vfsContext);
+   
+}

Deleted: trunk/server/src/main/org/jboss/deployment/spi/EndpointInfo.java
===================================================================
--- branches/InjectionPrototype/server/src/main/org/jboss/deployment/spi/EndpointInfo.java	2008-04-11 09:37:12 UTC (rev 72011)
+++ trunk/server/src/main/org/jboss/deployment/spi/EndpointInfo.java	2008-04-15 10:23:38 UTC (rev 72208)
@@ -1,79 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * 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.deployment.spi;
-
-import java.io.Serializable;
-
-/**
- * Encapsulation of a deployment endpoint
- * 
- * @author Scott.Stark at jboss.org
- * @version $Revision:$
- */
-public class EndpointInfo implements Serializable
-{
-   private static final long serialVersionUID = 1;
-   /** VFS relative path of the endpoints deployment */
-   private String pathName;
-   /** The deployment unique component name */
-   private String name;
-   /** The endpoint type */
-   private String type;
-   /**
-    * @param pathName
-    * @param name
-    * @param type
-    */
-   public EndpointInfo(String pathName, String name, String type)
-   {
-      super();
-      this.pathName = pathName;
-      this.name = name;
-      this.type = type;
-   }
-
-   public String getPathName()
-   {
-      return pathName;
-   }
-   public String getName()
-   {
-      return name;
-   }
-   public String getType()
-   {
-      return type;
-   }
-
-   @Override
-   public String toString()
-   {
-      StringBuilder tmp = new StringBuilder("EndpointInfo(pathName=");
-      tmp.append(pathName);
-      tmp.append(",name=");
-      tmp.append(name);
-      tmp.append(",type=");
-      tmp.append(type);
-      tmp.append(")");
-      return tmp.toString();
-   }
-}

Copied: trunk/server/src/main/org/jboss/deployment/spi/EndpointInfo.java (from rev 72168, branches/InjectionPrototype/server/src/main/org/jboss/deployment/spi/EndpointInfo.java)
===================================================================
--- trunk/server/src/main/org/jboss/deployment/spi/EndpointInfo.java	                        (rev 0)
+++ trunk/server/src/main/org/jboss/deployment/spi/EndpointInfo.java	2008-04-15 10:23:38 UTC (rev 72208)
@@ -0,0 +1,83 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * 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.deployment.spi;
+
+import java.io.Serializable;
+
+/**
+ * Encapsulation of a deployment endpoint
+ * 
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public class EndpointInfo implements Serializable
+{
+   private static final long serialVersionUID = 1;
+   /** VFS relative path of the endpoints deployment */
+   private String pathName;
+   /** The deployment unique component name */
+   private String name;
+   /** The endpoint type */
+   private String type;
+   /**
+    * @param pathName
+    * @param name
+    * @param type
+    */
+   public EndpointInfo(String pathName, String name, String type)
+   {
+      super();
+      this.pathName = pathName;
+      this.name = name;
+      this.type = type;
+   }
+
+   public String getPathName()
+   {
+      return pathName;
+   }
+   public String getName()
+   {
+      return name;
+   }
+   public String getType()
+   {
+      return type;
+   }
+   public String getComponentKey()
+   {
+      return type + "/" + pathName + "#" + name;
+   }
+
+   @Override
+   public String toString()
+   {
+      StringBuilder tmp = new StringBuilder("EndpointInfo(pathName=");
+      tmp.append(pathName);
+      tmp.append(",name=");
+      tmp.append(name);
+      tmp.append(",type=");
+      tmp.append(type);
+      tmp.append(")");
+      return tmp.toString();
+   }
+}

Deleted: trunk/server/src/main/org/jboss/deployment/spi/EndpointType.java
===================================================================
--- branches/InjectionPrototype/server/src/main/org/jboss/deployment/spi/EndpointType.java	2008-04-11 09:37:12 UTC (rev 72011)
+++ trunk/server/src/main/org/jboss/deployment/spi/EndpointType.java	2008-04-15 10:23:38 UTC (rev 72208)
@@ -1,39 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * 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.deployment.spi;
-
-/**
- * Constants for the known endpoint types
- * 
- * @author Scott.Stark at jboss.org
- * @version $Revision:$
- */
-public interface EndpointType
-{
-   public static final String EJB = "ejb";
-   public static final String MCMBean = "mcbean";
-   public static final String MBean = "mbean";
-   public static final String MessageDestination = "message-destination";
-   public static final String PersistenceUnit = "persistence-unit";
-   public static final String Servlet = "servlet";
-   public static final String WebService = "web-service";
-}

Copied: trunk/server/src/main/org/jboss/deployment/spi/EndpointType.java (from rev 72168, branches/InjectionPrototype/server/src/main/org/jboss/deployment/spi/EndpointType.java)
===================================================================
--- trunk/server/src/main/org/jboss/deployment/spi/EndpointType.java	                        (rev 0)
+++ trunk/server/src/main/org/jboss/deployment/spi/EndpointType.java	2008-04-15 10:23:38 UTC (rev 72208)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * 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.deployment.spi;
+
+/**
+ * Constants for the known endpoint types
+ * 
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public interface EndpointType
+{
+   public static final String EJB = "ejb";
+   public static final String MCMBean = "mcbean";
+   public static final String MBean = "mbean";
+   public static final String MessageDestination = "message-destination";
+   public static final String PersistenceUnit = "persistence-unit";
+   public static final String Servlet = "servlet";
+   public static final String WebService = "web-service";
+}




More information about the jboss-cvs-commits mailing list