From 96de00b737e8d3107ad81e39d8bb6b3ce62ea37c Mon Sep 17 00:00:00 2001 From: j2blake Date: Sat, 4 Jan 2014 14:40:26 -0500 Subject: [PATCH] Make DeveloperSettings a singleton, and other improvements. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By making it a singleton, we do need an explicit Setup operation. However, it means that we can refer to the settings in client code that doesn’t have access to a request or to the ServletContext. Other refactorings to simplify the logic or make it more scalable. --- productMods/WEB-INF/resources/startup_listeners.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/productMods/WEB-INF/resources/startup_listeners.txt b/productMods/WEB-INF/resources/startup_listeners.txt index 72b4075e..ce0c70b5 100644 --- a/productMods/WEB-INF/resources/startup_listeners.txt +++ b/productMods/WEB-INF/resources/startup_listeners.txt @@ -11,6 +11,8 @@ edu.cornell.mannlib.vitro.webapp.config.ConfigurationPropertiesSetup edu.cornell.mannlib.vitro.webapp.config.ConfigurationPropertiesSmokeTests +edu.cornell.mannlib.vitro.webapp.utils.developer.DeveloperSettings$Setup + edu.cornell.mannlib.vitro.webapp.config.RevisionInfoSetup edu.cornell.mannlib.vitro.webapp.email.FreemarkerEmailFactory$Setup