Issue #4003 Cleanup quickstart

* cleanup from review

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2019-09-18 14:45:06 +10:00
parent 1b3ee6ee17
commit 289c70ec9b
1 changed files with 8 additions and 6 deletions

View File

@ -968,7 +968,8 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
*/
public void setConfigurationClasses(String[] configurations)
{
loadConfigurations();
if (_configurations == null)
_configurations = new Configurations();
_configurations.set(configurations);
}
@ -982,7 +983,8 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
*/
public void setConfigurations(Configuration[] configurations)
{
loadConfigurations();
if (_configurations == null)
_configurations = new Configurations();
_configurations.set(configurations);
}
@ -1005,14 +1007,14 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
public void removeConfiguration(Configuration... configurations)
{
loadConfigurations();
_configurations.remove(configurations);
if (_configurations != null)
_configurations.remove(configurations);
}
public void removeConfiguration(Class<? extends Configuration>... configurations)
{
loadConfigurations();
_configurations.remove(configurations);
if (_configurations != null)
_configurations.remove(configurations);
}
/**