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 Collection<String> | getFacesServletMappings(ServletContext servletContext)Returns the mappings associated with the  FacesServlet. | 
| static ServletRegistration | getFacesServletRegistration(ServletContext servletContext)Returns the  ServletRegistrationassociated with theFacesServlet. | 
| 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.public static Collection<String> getFacesServletMappings(ServletContext servletContext)
FacesServlet.servletContext - The context to get the FacesServlet from.FacesServlet, or an empty set.Copyright © 2012–2017 OmniFaces. All rights reserved.