Author: alessio.soldano(a)jboss.com
Date: 2011-06-11 04:03:51 -0400 (Sat, 11 Jun 2011)
New Revision: 14523
Modified:
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java
Log:
[JBWS-3286] Adding endpoint config methods to abstract server config
Modified:
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java
===================================================================
---
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java 2011-06-11
08:02:53 UTC (rev 14522)
+++
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java 2011-06-11
08:03:51 UTC (rev 14523)
@@ -24,6 +24,8 @@
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.UnknownHostException;
+import java.util.ArrayList;
+import java.util.List;
import java.util.Set;
import javax.management.AttributeNotFoundException;
@@ -39,6 +41,7 @@
import org.jboss.wsf.spi.management.ServerConfig;
import org.jboss.wsf.spi.management.StackConfig;
import org.jboss.wsf.spi.management.StackConfigFactory;
+import org.jboss.wsf.spi.metadata.config.EndpointConfig;
/**
* Basic implementation of a ServerConfig
@@ -70,6 +73,8 @@
private boolean modifySOAPAddress;
//The stack config
protected StackConfig stackConfig;
+ // The default endpoint configs, if any
+ private final List<EndpointConfig> endpointConfigs = new
ArrayList<EndpointConfig>();
public MBeanServer getMbeanServer()
{
@@ -241,4 +246,14 @@
{
return stackConfig.getImplementationVersion();
}
+
+ public void addEndpointConfig(EndpointConfig config)
+ {
+ this.endpointConfigs.add(config);
+ }
+
+ public List<EndpointConfig> getEndpointConfigs()
+ {
+ return this.endpointConfigs;
+ }
}