public class Documents extends Object
Constructor and Description |
---|
Documents() |
Modifier and Type | Method and Description |
---|---|
static List<DocumentInfo> |
getProgrammaticDocuments(List<ApplicationConfigurationPopulator> configPopulators) |
static DocumentInfo[] |
getXMLDocuments(javax.servlet.ServletContext servletContext,
List<ConfigurationResourceProvider> providers,
ExecutorService executor,
boolean validating)
Obtains an array of
Document s to be processed |
static DocumentInfo[] |
mergeDocuments(DocumentInfo[] facesDocuments,
List<DocumentInfo> programmaticDocuments) |
static DocumentInfo[] |
sortDocuments(DocumentInfo[] facesDocuments,
FacesConfigInfo webInfFacesConfig)
Sort the
faces-config documents found on the classpath
and those specified by the javax.faces.CONFIG_FILES context
init parameter. |
public static DocumentInfo[] getXMLDocuments(javax.servlet.ServletContext servletContext, List<ConfigurationResourceProvider> providers, ExecutorService executor, boolean validating)
Obtains an array of Document
s to be processed
servletContext
- the ServletContext
for the application to be
processedproviders
- List
of ConfigurationResourceProvider
instances that provide the URL of the documents to parse.executor
- the ExecutorService
used to dispatch parse
request tovalidating
- flag indicating whether or not the documents
should be validatedDocumentInfo
spublic static List<DocumentInfo> getProgrammaticDocuments(List<ApplicationConfigurationPopulator> configPopulators) throws ParserConfigurationException
ParserConfigurationException
public static DocumentInfo[] mergeDocuments(DocumentInfo[] facesDocuments, List<DocumentInfo> programmaticDocuments)
public static DocumentInfo[] sortDocuments(DocumentInfo[] facesDocuments, FacesConfigInfo webInfFacesConfig)
Sort the faces-config
documents found on the classpath
and those specified by the javax.faces.CONFIG_FILES
context
init parameter.
facesDocuments
- an array of all faces-config
documentswebInfFacesConfig
- FacesConfigInfo representing the WEB-INF/faces-config.xml
for this appComments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.