java.lang.Object
com.sun.faces.context.ContextParamUtils
A utility class for dealing with context-param entries.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
getValue
(ServletContext servletContext, ContextParam contextParam) Get the value.static <T> T
getValue
(ServletContext servletContext, ContextParam contextParam, Class<T> clazz) Get the value.
-
Method Details
-
getValue
Get the value.- Parameters:
servletContext
- the servlet context.contextParam
- the context-param.- Returns:
- the value.
-
getValue
public static <T> T getValue(ServletContext servletContext, ContextParam contextParam, Class<T> clazz) Get the value.- Type Parameters:
T
- the type.- Parameters:
servletContext
- the servlet context.contextParam
- the context-param.clazz
- the class.- Returns:
- the value.
-