Author: alessio.soldano(a)jboss.com
Date: 2011-07-19 05:05:46 -0400 (Tue, 19 Jul 2011)
New Revision: 14702
Added:
spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/Context.java
Modified:
spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/EndpointPublisher.java
Log:
Updating spi for supporting deployment of multiple endpoints in the same context
Added: spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/Context.java
===================================================================
--- spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/Context.java
(rev 0)
+++ spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/Context.java 2011-07-19
09:05:46 UTC (rev 14702)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
+ * as indicated by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * 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,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+package org.jboss.wsf.spi.publish;
+
+import java.util.List;
+
+import org.jboss.wsf.spi.deployment.Endpoint;
+
+public class Context {
+ private final String context;
+ private final List<Endpoint> endpoints;
+
+ public Context(String context, List<Endpoint> endpoints) {
+ this.endpoints = endpoints;
+ this.context = context;
+ }
+
+ public String getContext() {
+ return context;
+ }
+
+ public List<Endpoint> getEndpoints() {
+ return endpoints;
+ }
+}
Modified:
spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/EndpointPublisher.java
===================================================================
---
spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/EndpointPublisher.java 2011-07-19
09:05:22 UTC (rev 14701)
+++
spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/EndpointPublisher.java 2011-07-19
09:05:46 UTC (rev 14702)
@@ -18,7 +18,7 @@
*/
package org.jboss.wsf.spi.publish;
-import org.jboss.wsf.spi.deployment.Endpoint;
+import java.util.Map;
/**
* EndpointPublisher defines the interface for facilities allowing to publish/destroy
@@ -28,7 +28,7 @@
*/
public interface EndpointPublisher
{
- public Endpoint publish(String className, ClassLoader loader, String context, String
urlPattern) throws Exception;
+ public Context publish(String contextRoot, ClassLoader loader, Map<String,
String> urlPatternToClassNameMap) throws Exception;
- public void destroy(Endpoint endpoint) throws Exception;
+ public void destroy(Context context) throws Exception;
}
Show replies by date