Top Description Constructors Methods
com.sun.faces.context

public Class ContextParamUtils

extends Object
Class Inheritance
Imports
javax.servlet.ServletContext

A utility class for dealing with context-param entries.

Constructor Summary

AccessConstructor and Description
private
ContextParamUtils()

Constructor.

Method Summary

Modifier and TypeMethod and Description
public static Object

Returns:

the value.
getValue
(ServletContext
the servlet context.
servletContext
,
ContextParam
the context-param.
contextParam
)

Get the value.

public static <
the type.
T
>
T

Returns:

the value.
getValue
(ServletContext
the servlet context.
servletContext
,
ContextParam
the context-param.
contextParam
,
Class<T>
the class.
clazz
)

Get the value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ContextParamUtilsback to summary
private ContextParamUtils()

Constructor.

Method Detail

getValueback to summary
public static Object getValue(ServletContext servletContext, ContextParam contextParam)

Get the value.

Parameters
servletContext:ServletContext

the servlet context.

contextParam:ContextParam

the context-param.

Returns:Object

the value.

getValueback to summary
public static <T> T getValue(ServletContext servletContext, ContextParam contextParam, Class<T> clazz)

Get the value.

Parameters
<T>
the type.
servletContext:ServletContext

the servlet context.

contextParam:ContextParam

the context-param.

clazz:Class<T>

the class.

Returns:T

the value.