Author: alessio.soldano(a)jboss.com
Date: 2011-07-14 11:26:16 -0400 (Thu, 14 Jul 2011)
New Revision: 14691
Added:
spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/
spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/EndpointPublisher.java
spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/EndpointPublisherFactory.java
Log:
Adding EndpointPublisher API
Added:
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
(rev 0)
+++
spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/EndpointPublisher.java 2011-07-14
15:26:16 UTC (rev 14691)
@@ -0,0 +1,34 @@
+/*
+ * 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 org.jboss.wsf.spi.deployment.Endpoint;
+
+/**
+ * EndpointPublisher defines the interface for facilities allowing to publish/destroy
+ * WS endpoints on top of the running JBoss Application Server container.
+ *
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio
Soldano</a>
+ */
+public interface EndpointPublisher
+{
+ public Endpoint publish(String className, ClassLoader loader, String context, String
urlPattern) throws Exception;
+
+ public void destroy(Endpoint endpoint) throws Exception;
+}
Added:
spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/EndpointPublisherFactory.java
===================================================================
---
spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/EndpointPublisherFactory.java
(rev 0)
+++
spi/branches/asoldano/src/main/java/org/jboss/wsf/spi/publish/EndpointPublisherFactory.java 2011-07-14
15:26:16 UTC (rev 14691)
@@ -0,0 +1,31 @@
+/*
+ * 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;
+
+
+/**
+ * Factory for retrieving a EndpointPublisher instance for
+ * the currently running JBoss Application Server container.
+ *
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio
Soldano</a>
+ */
+public interface EndpointPublisherFactory
+{
+ public EndpointPublisher newEndpointPublisher(String hostname) throws Exception;
+}
Show replies by date