public final class Platform extends Object
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.
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_VALIDATION_AVAILABLE |
Modifier and Type | Method and Description |
---|---|
static Validator |
getBeanValidator() |
static ValidatorFactory |
getBeanValidatorFactory() |
static ServletRegistration |
getFacesServletRegistration(ServletContext servletContext)
Returns the
ServletRegistration associated with the FacesServlet . |
static boolean |
isBeanValidationAvailable() |
public static final String BEAN_VALIDATION_AVAILABLE
public static ValidatorFactory getBeanValidatorFactory()
public static Validator getBeanValidator()
public static boolean isBeanValidationAvailable()
public static ServletRegistration getFacesServletRegistration(ServletContext servletContext)
ServletRegistration
associated with the FacesServlet
.servletContext
- The context to get the ServletRegistration from.null
if the FacesServlet is not installed.Copyright © 2012–2015 OmniFaces. All rights reserved.