[jbossws-commits] JBossWS SVN: r5891 - in spi/branches/hbraun: src/main/java/org/jboss/wsf/spi and 1 other directories.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Fri Mar 7 14:17:01 EST 2008


Author: heiko.braun at jboss.com
Date: 2008-03-07 14:17:00 -0500 (Fri, 07 Mar 2008)
New Revision: 5891

Added:
   spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/
   spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/ListenerRef.java
   spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/Protocol.java
   spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportManager.java
   spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportManagerFactory.java
   spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportSpec.java
Modified:
   spi/branches/hbraun/version.properties
Log:
transport spi, first cut

Added: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/ListenerRef.java
===================================================================
--- spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/ListenerRef.java	                        (rev 0)
+++ spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/ListenerRef.java	2008-03-07 19:17:00 UTC (rev 5891)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.wsf.spi.transport;
+
+import java.net.URI;
+
+/**
+ * A reference to an endpoint listener that can be
+ * used to drive subsequent {@link org.jboss.wsf.spi.transport.TransportManager} operations
+ * after the listener has been created.<br/>
+ * I.e. the most simple usecase is to tear down the listener when the endpoint is undeployed.
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public interface ListenerRef
+{
+   /**
+    * UUID that distinct across protocols
+    * @return
+    */
+   String getUUID();
+
+   /**
+    * The protocol itself
+    * @return
+    */
+   Protocol getProtocol();
+
+   /**
+    * Address that can be published in WSDL
+    * @return
+    */
+   URI getAddress();
+
+}


Property changes on: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/ListenerRef.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/Protocol.java
===================================================================
--- spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/Protocol.java	                        (rev 0)
+++ spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/Protocol.java	2008-03-07 19:17:00 UTC (rev 5891)
@@ -0,0 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.wsf.spi.transport;
+
+/**
+ * A simple protocol identifier.
+ * 
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public enum Protocol
+{
+   HTTP, JMS;
+}


Property changes on: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/Protocol.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportManager.java
===================================================================
--- spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportManager.java	                        (rev 0)
+++ spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportManager.java	2008-03-07 19:17:00 UTC (rev 5891)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.wsf.spi.transport;
+
+import org.jboss.wsf.spi.deployment.Endpoint;
+
+/**
+ * A transport abstraction that knows how to create and destroy
+ * endpoint listener for
+ * <ul>
+ * <li>a particular protocol
+ * <li>using transport specific properties
+ * </ul>
+ * 
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public interface TransportManager<T extends TransportSpec>
+{
+   ListenerRef createListener(Endpoint endpoint, T transportSpec);
+   void destroyListener(ListenerRef ref);
+}


Property changes on: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportManager.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportManagerFactory.java
===================================================================
--- spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportManagerFactory.java	                        (rev 0)
+++ spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportManagerFactory.java	2008-03-07 19:17:00 UTC (rev 5891)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.wsf.spi.transport;
+
+import org.jboss.wsf.spi.SPIView;
+
+/**
+ * Factory for creating {@link TransportManager}'s for a particular {@link org.jboss.wsf.spi.transport.Protocol}.
+ * Will be retrieved through a {@link org.jboss.wsf.spi.SPIProvider}
+ * 
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public interface TransportManagerFactory extends SPIView
+{
+   TransportManager createTransportManager(Protocol protocol);
+}


Property changes on: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportManagerFactory.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportSpec.java
===================================================================
--- spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportSpec.java	                        (rev 0)
+++ spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportSpec.java	2008-03-07 19:17:00 UTC (rev 5891)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.wsf.spi.transport;
+
+/**
+ * Transport specific properties for a particular {@link Protocol}
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public interface TransportSpec
+{
+   Protocol getProtocol();
+}


Property changes on: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/TransportSpec.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Modified: spi/branches/hbraun/version.properties
===================================================================
--- spi/branches/hbraun/version.properties	2008-03-07 19:16:33 UTC (rev 5890)
+++ spi/branches/hbraun/version.properties	2008-03-07 19:17:00 UTC (rev 5891)
@@ -5,8 +5,8 @@
 specification.vendor=JBoss (http://www.jboss.org)
 specification.version=jbossws-2.0
 
-version.id=1.0.2.DEV
-repository.id=1.0.2.DEV
+version.id=1.1.0.DEV
+repository.id=1.1.0.DEV
 
 implementation.title=JBoss Web Services - SPI
 implementation.url=http://www.jboss.org/products/jbossws




More information about the jbossws-commits mailing list