org.omnifaces.util
Class Platform
java.lang.Object
org.omnifaces.util.Platform
public final class Platform
- extends java.lang.Object
This class provides access to (Java EE 6) platform services from the view point of JSF.
Note that this utility class can only be used in a JSF environment and is thus not
a Java EE general way to obtain platform services.
- Since:
- 1.6
- Author:
- Arjan Tijms
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEAN_VALIDATION_AVAILABLE
public static final java.lang.String BEAN_VALIDATION_AVAILABLE
- See Also:
- Constant Field Values
getBeanValidatorFactory
public static javax.validation.ValidatorFactory getBeanValidatorFactory()
getBeanValidator
public static javax.validation.Validator getBeanValidator()
isBeanValidationAvailable
public static boolean isBeanValidationAvailable()
getFacesServletRegistration
public static javax.servlet.ServletRegistration getFacesServletRegistration(javax.servlet.ServletContext servletContext)
- Returns the
ServletRegistration
associated with the FacesServlet
.
- Parameters:
servletContext
- The context to get the ServletRegistration from.
- Returns:
- ServletRegistration for FacesServlet, or
null
if the FacesServlet is not installed. - Since:
- 1.8