[jboss-cvs] JBossAS SVN: r71754 - in projects/integration/trunk/jboss-deployment-spi: .settings and 8 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Apr 6 18:20:42 EDT 2008


Author: scott.stark at jboss.org
Date: 2008-04-06 18:20:42 -0400 (Sun, 06 Apr 2008)
New Revision: 71754

Added:
   projects/integration/trunk/jboss-deployment-spi/.classpath
   projects/integration/trunk/jboss-deployment-spi/.project
   projects/integration/trunk/jboss-deployment-spi/.settings/
   projects/integration/trunk/jboss-deployment-spi/.settings/org.eclipse.jdt.core.prefs
   projects/integration/trunk/jboss-deployment-spi/pom.xml
   projects/integration/trunk/jboss-deployment-spi/src/
   projects/integration/trunk/jboss-deployment-spi/src/main/
   projects/integration/trunk/jboss-deployment-spi/src/main/java/
   projects/integration/trunk/jboss-deployment-spi/src/main/java/org/
   projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/
   projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/
   projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/spi/
   projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/spi/DeploymentEndpointResolver.java
   projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/spi/EndpointInfo.java
   projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/spi/EndpointType.java
   projects/integration/trunk/jboss-deployment-spi/target/
   projects/integration/trunk/jboss-deployment-spi/target/jboss-deployment-spi-sources.jar
   projects/integration/trunk/jboss-deployment-spi/target/jboss-deployment-spi.jar
Log:
Add deployment endpoint spi

Added: projects/integration/trunk/jboss-deployment-spi/.classpath
===================================================================
--- projects/integration/trunk/jboss-deployment-spi/.classpath	                        (rev 0)
+++ projects/integration/trunk/jboss-deployment-spi/.classpath	2008-04-06 22:20:42 UTC (rev 71754)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src/main/java"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="var" path="M2_REPO/jboss/jboss-common-logging-spi/2.0.4.GA/jboss-common-logging-spi-2.0.4.GA.jar" sourcepath="M2_REPO/jboss/jboss-common-logging-spi/2.0.4.GA/jboss-common-logging-spi-2.0.4.GA-sources.jar"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: projects/integration/trunk/jboss-deployment-spi/.project
===================================================================
--- projects/integration/trunk/jboss-deployment-spi/.project	                        (rev 0)
+++ projects/integration/trunk/jboss-deployment-spi/.project	2008-04-06 22:20:42 UTC (rev 71754)
@@ -0,0 +1,13 @@
+<projectDescription>
+  <name>jboss-deployment-spi</name>
+  <comment>The JBossAS Deployment 5.0.0 SPI classes</comment>
+  <projects/>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+  </natures>
+</projectDescription>
\ No newline at end of file

Added: projects/integration/trunk/jboss-deployment-spi/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- projects/integration/trunk/jboss-deployment-spi/.settings/org.eclipse.jdt.core.prefs	                        (rev 0)
+++ projects/integration/trunk/jboss-deployment-spi/.settings/org.eclipse.jdt.core.prefs	2008-04-06 22:20:42 UTC (rev 71754)
@@ -0,0 +1,5 @@
+#Sun Apr 06 15:13:16 PDT 2008
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5

Added: projects/integration/trunk/jboss-deployment-spi/pom.xml
===================================================================
--- projects/integration/trunk/jboss-deployment-spi/pom.xml	                        (rev 0)
+++ projects/integration/trunk/jboss-deployment-spi/pom.xml	2008-04-06 22:20:42 UTC (rev 71754)
@@ -0,0 +1,22 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jboss</groupId>
+    <artifactId>jboss-integration-parent</artifactId>
+    <version>5.0.0-SNAPSHOT</version>
+    <relativePath>../build/pom.xml</relativePath>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss</groupId>
+  <artifactId>jboss-deployment-spi</artifactId>
+  <version>5.0.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+  <name>JBoss Deployment 5.0.0 SPI</name>
+  <url>http://www.jboss.org</url>
+  <description>The JBossAS Deployment 5.0.0 SPI classes</description>
+  <dependencies>
+    <dependency>
+      <groupId>jboss</groupId>
+      <artifactId>jboss-common-logging-spi</artifactId>
+    </dependency>
+  </dependencies>
+</project>

Added: projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/spi/DeploymentEndpointResolver.java
===================================================================
--- projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/spi/DeploymentEndpointResolver.java	                        (rev 0)
+++ projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/spi/DeploymentEndpointResolver.java	2008-04-06 22:20:42 UTC (rev 71754)
@@ -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);
+
+   /**
+    * 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);
+   
+}

Added: projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/spi/EndpointInfo.java
===================================================================
--- projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/spi/EndpointInfo.java	                        (rev 0)
+++ projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/spi/EndpointInfo.java	2008-04-06 22:20:42 UTC (rev 71754)
@@ -0,0 +1,79 @@
+/*
+ * 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();
+   }
+}

Added: projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/spi/EndpointType.java
===================================================================
--- projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/spi/EndpointType.java	                        (rev 0)
+++ projects/integration/trunk/jboss-deployment-spi/src/main/java/org/jboss/deployment/spi/EndpointType.java	2008-04-06 22:20:42 UTC (rev 71754)
@@ -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";
+}

Added: projects/integration/trunk/jboss-deployment-spi/target/jboss-deployment-spi-sources.jar
===================================================================
(Binary files differ)


Property changes on: projects/integration/trunk/jboss-deployment-spi/target/jboss-deployment-spi-sources.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/integration/trunk/jboss-deployment-spi/target/jboss-deployment-spi.jar
===================================================================
(Binary files differ)


Property changes on: projects/integration/trunk/jboss-deployment-spi/target/jboss-deployment-spi.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the jboss-cvs-commits mailing list