Class ConfigurationProperties
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.config.ConfigurationProperties
-
- Direct Known Subclasses:
ConfigurationPropertiesImpl
public abstract class ConfigurationProperties extends Object
Provides an mechanism for modules to read the configuration properties that are attached to the servlet context. The customary behavior is for ConfigurationPropertiesSetup to create a ConfigurationPropertiesImpl, which will obtain the properties from the build.properties file and the runtime.properties file.
-
-
Constructor Summary
Constructors Constructor Description ConfigurationProperties()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ConfigurationPropertiesgetBean(javax.servlet.http.HttpServlet servlet)Deprecated.static ConfigurationPropertiesgetBean(javax.servlet.http.HttpSession session)Deprecated.static ConfigurationPropertiesgetBean(javax.servlet.ServletConfig servletConfig)Deprecated.static ConfigurationPropertiesgetBean(javax.servlet.ServletContext context)Deprecated.static ConfigurationPropertiesgetBean(javax.servlet.ServletContextEvent sce)Deprecated.static ConfigurationPropertiesgetBean(javax.servlet.ServletRequest request)Deprecated.static ConfigurationPropertiesgetInstance()abstract StringgetProperty(String key)Get the value of the property, ornullif the property has not been assigned a value.abstract StringgetProperty(String key, String defaultValue)Get the value of the property, or use the default value if the property has not been assigned a value.abstract Map<String,String>getPropertyMap()Get a copy of the map of the configuration properties and their settings.protected static voidsetBean(ConfigurationProperties bean)Deprecated.static voidsetInstance(ConfigurationProperties props)
-
-
-
Method Detail
-
getInstance
public static ConfigurationProperties getInstance()
-
setInstance
public static void setInstance(ConfigurationProperties props)
-
getBean
@Deprecated public static ConfigurationProperties getBean(javax.servlet.ServletRequest request)
Deprecated.
-
getBean
@Deprecated public static ConfigurationProperties getBean(javax.servlet.http.HttpSession session)
Deprecated.
-
getBean
@Deprecated public static ConfigurationProperties getBean(javax.servlet.http.HttpServlet servlet)
Deprecated.
-
getBean
@Deprecated public static ConfigurationProperties getBean(javax.servlet.ServletContextEvent sce)
Deprecated.
-
getBean
@Deprecated public static ConfigurationProperties getBean(javax.servlet.ServletConfig servletConfig)
Deprecated.
-
getBean
@Deprecated public static ConfigurationProperties getBean(javax.servlet.ServletContext context)
Deprecated.
-
setBean
@Deprecated protected static void setBean(ConfigurationProperties bean)
Deprecated.Protected access, so the Stub class can call it for unit tests. Otherwise, this should only be called by ConfigurationPropertiesSetup.
-
getProperty
public abstract String getProperty(String key)
Get the value of the property, ornullif the property has not been assigned a value.
-
getProperty
public abstract String getProperty(String key, String defaultValue)
Get the value of the property, or use the default value if the property has not been assigned a value.
-
-