Author: jim.ma
Date: 2011-09-01 03:12:23 -0400 (Thu, 01 Sep 2011)
New Revision: 14916
Added:
spi/branches/JBWS-3343/src/main/java/org/jboss/wsf/spi/deployment/EndpointTypeFilter.java
Modified:
spi/branches/JBWS-3343/src/main/java/org/jboss/wsf/spi/deployment/Endpoint.java
spi/branches/JBWS-3343/src/main/java/org/jboss/wsf/spi/deployment/Service.java
Log:
JBWS-3346:Add EndpointType and remove the context root from service
Modified: spi/branches/JBWS-3343/src/main/java/org/jboss/wsf/spi/deployment/Endpoint.java
===================================================================
---
spi/branches/JBWS-3343/src/main/java/org/jboss/wsf/spi/deployment/Endpoint.java 2011-09-01
05:10:22 UTC (rev 14915)
+++
spi/branches/JBWS-3343/src/main/java/org/jboss/wsf/spi/deployment/Endpoint.java 2011-09-01
07:12:23 UTC (rev 14916)
@@ -46,6 +46,11 @@
static final String SEPID_PROPERTY_ENDPOINT = "endpoint";
static final String SEPID_DOMAIN_ENDPOINT = SEPID_DOMAIN + "." +
SEPID_PROPERTY_ENDPOINT;
+
+ public enum EndpointType
+ {
+ JAXRPC_JSE, JAXRPC_EJB21, JAXWS_JSE, JAXWS_EJB3, JAXWS_JMS;
+ };
public enum EndpointState
{
@@ -132,4 +137,18 @@
/** Set security domain context */
void setSecurityDomainContext(SecurityDomainContext context);
+
+
+ /** Set endpoint type */
+ void setType(EndpointType type);
+
+ /** get endpoint type */
+ EndpointType getType();
+
+
+ /** Get the context root for this service */
+ String getContextRoot();
+
+ /** Set the context root for this service */
+ void setContextRoot(String contextRoot);
}
Added:
spi/branches/JBWS-3343/src/main/java/org/jboss/wsf/spi/deployment/EndpointTypeFilter.java
===================================================================
---
spi/branches/JBWS-3343/src/main/java/org/jboss/wsf/spi/deployment/EndpointTypeFilter.java
(rev 0)
+++
spi/branches/JBWS-3343/src/main/java/org/jboss/wsf/spi/deployment/EndpointTypeFilter.java 2011-09-01
07:12:23 UTC (rev 14916)
@@ -0,0 +1,9 @@
+package org.jboss.wsf.spi.deployment;
+
+import org.jboss.wsf.spi.deployment.Endpoint.EndpointType;
+
+public interface EndpointTypeFilter
+{
+ boolean accept(EndpointType type);
+
+}
Modified: spi/branches/JBWS-3343/src/main/java/org/jboss/wsf/spi/deployment/Service.java
===================================================================
---
spi/branches/JBWS-3343/src/main/java/org/jboss/wsf/spi/deployment/Service.java 2011-09-01
05:10:22 UTC (rev 14915)
+++
spi/branches/JBWS-3343/src/main/java/org/jboss/wsf/spi/deployment/Service.java 2011-09-01
07:12:23 UTC (rev 14916)
@@ -23,6 +23,8 @@
import java.util.List;
+import org.jboss.wsf.spi.deployment.Endpoint.EndpointType;
+
/**
* A general service deployment.
*
@@ -42,18 +44,15 @@
/** Add an endpoint to the service */
void addEndpoint(Endpoint endpoint);
- /** Get the list of endpoints */
+ /** Get the list of endpoints*/
List<Endpoint> getEndpoints();
+ /** Get the list of endpoints with EndpointTypeFilter*/
+ List<Endpoint> getEndpoints(EndpointTypeFilter filter);
+
/** Get an endpoint by name */
Endpoint getEndpointByName(String simpleName);
- /** Get the context root for this service */
- String getContextRoot();
-
- /** Set the context root for this service */
- void setContextRoot(String contextRoot);
-
/** Get the virtual hosts for this service */
List<String> getVirtualHosts();
Show replies by date