diff --git a/jetty-spring/src/main/config/etc/jetty-spring.xml b/jetty-spring/src/main/config/etc/jetty-spring.xml index 282a3a76e9e..95f97797f2f 100644 --- a/jetty-spring/src/main/config/etc/jetty-spring.xml +++ b/jetty-spring/src/main/config/etc/jetty-spring.xml @@ -8,7 +8,7 @@ - + diff --git a/jetty-spring/src/main/java/org/eclipse/jetty/spring/Server.java b/jetty-spring/src/main/java/org/eclipse/jetty/spring/Server.java index d9a86ca2fb1..fd22cd8a2c6 100644 --- a/jetty-spring/src/main/java/org/eclipse/jetty/spring/Server.java +++ b/jetty-spring/src/main/java/org/eclipse/jetty/spring/Server.java @@ -19,8 +19,12 @@ package org.eclipse.jetty.spring; +import java.net.InetSocketAddress; import java.util.Collection; +import org.eclipse.jetty.util.component.Container; +import org.eclipse.jetty.util.thread.ThreadPool; + /* ------------------------------------------------------------ */ /** @@ -30,10 +34,34 @@ import java.util.Collection; */ public class Server extends org.eclipse.jetty.server.Server { + public Server() + { + super(); + } + + public Server(InetSocketAddress addr) + { + super(addr); + } + + public Server(int port) + { + super(port); + } + + public Server(ThreadPool pool, Container container) + { + super(pool,container); + } + + public Server(ThreadPool pool) + { + super(pool); + } + public void setBeans(Collection beans) { for (Object o:beans) addBean(o); } - } diff --git a/jetty-spring/src/test/java/org/eclipse/jetty/spring/SpringXmlConfigurationTest.java b/jetty-spring/src/test/java/org/eclipse/jetty/spring/SpringXmlConfigurationTest.java index ccdd9f5b059..841f97d2a2b 100644 --- a/jetty-spring/src/test/java/org/eclipse/jetty/spring/SpringXmlConfigurationTest.java +++ b/jetty-spring/src/test/java/org/eclipse/jetty/spring/SpringXmlConfigurationTest.java @@ -34,7 +34,7 @@ import static junit.framework.Assert.assertEquals; public class SpringXmlConfigurationTest { - protected String _configure="org/mortbay/jetty/spring/configure.xml"; + protected String _configure="org/eclipse/jetty/spring/configure.xml"; @Before public void init() throws Exception @@ -128,7 +128,7 @@ public class SpringXmlConfigurationTest @Test public void testJettyXml() throws Exception { - URL url = SpringXmlConfigurationTest.class.getClassLoader().getResource("org/mortbay/jetty/spring/jetty.xml"); + URL url = SpringXmlConfigurationTest.class.getClassLoader().getResource("org/eclipse/jetty/spring/jetty.xml"); XmlConfiguration configuration = new XmlConfiguration(url); Server server = (Server)configuration.configure(); @@ -140,7 +140,7 @@ public class SpringXmlConfigurationTest @Test public void XmlConfigurationMain() throws Exception { - XmlConfiguration.main(new String[]{"src/test/resources/org/mortbay/jetty/spring/jetty.xml"}); + XmlConfiguration.main(new String[]{"src/test/resources/org/eclipse/jetty/spring/jetty.xml"}); } } diff --git a/jetty-spring/src/test/resources/org/mortbay/jetty/spring/configure.xml b/jetty-spring/src/test/resources/org/eclipse/jetty/spring/configure.xml similarity index 87% rename from jetty-spring/src/test/resources/org/mortbay/jetty/spring/configure.xml rename to jetty-spring/src/test/resources/org/eclipse/jetty/spring/configure.xml index d55b6453215..8263c469f45 100644 --- a/jetty-spring/src/test/resources/org/mortbay/jetty/spring/configure.xml +++ b/jetty-spring/src/test/resources/org/eclipse/jetty/spring/configure.xml @@ -12,20 +12,20 @@ test - + SetValue 1 - + 2 nested - + deep 2 diff --git a/jetty-spring/src/test/resources/org/mortbay/jetty/spring/jetty-deploy.xml b/jetty-spring/src/test/resources/org/eclipse/jetty/spring/jetty-deploy.xml similarity index 89% rename from jetty-spring/src/test/resources/org/mortbay/jetty/spring/jetty-deploy.xml rename to jetty-spring/src/test/resources/org/eclipse/jetty/spring/jetty-deploy.xml index 88258fd1086..290873d779b 100644 --- a/jetty-spring/src/test/resources/org/mortbay/jetty/spring/jetty-deploy.xml +++ b/jetty-spring/src/test/resources/org/eclipse/jetty/spring/jetty-deploy.xml @@ -2,12 +2,12 @@ - +