From f49e76f3566dd67338a3b4b6aa0701fb80eadd81 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Tue, 21 Dec 2010 11:40:45 +0000 Subject: [PATCH] allow configuration during starting state git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2616 7e9141cc-0065-0410-87d8-b60c137991c4 --- .../main/java/org/eclipse/jetty/webapp/WebAppContext.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java index 265c9439eed..d723b2c8980 100644 --- a/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java +++ b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java @@ -20,7 +20,6 @@ import java.net.URL; import java.security.PermissionCollection; import java.util.ArrayList; import java.util.Collections; -import java.util.Enumeration; import java.util.EventListener; import java.util.HashMap; import java.util.List; @@ -808,7 +807,7 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL */ public void setConfigurationClasses(String[] configurations) { - if (isRunning()) + if (isStarted()) throw new IllegalStateException(); _configurationClasses = configurations==null?null:(String[])configurations.clone(); _configurationClassesSet = true; @@ -821,7 +820,7 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL */ public void setConfigurations(Configuration[] configurations) { - if (isRunning()) + if (isStarted()) throw new IllegalStateException(); _configurations = configurations==null?null:(Configuration[])configurations.clone(); _configurationsSet = true;