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