java.lang.Object
com.sun.faces.config.manager.Documents
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
<DocumentInfo> getProgrammaticDocuments
(List<ApplicationConfigurationPopulator> configPopulators) static DocumentInfo[]
getXMLDocuments
(jakarta.servlet.ServletContext servletContext, List<ConfigurationResourceProvider> providers, ExecutorService executor, boolean validating) Obtains an array ofDocument
s to be processedstatic DocumentInfo[]
mergeDocuments
(DocumentInfo[] facesDocuments, List<DocumentInfo> programmaticDocuments) static DocumentInfo[]
sortDocuments
(DocumentInfo[] facesDocuments, FacesConfigInfo webInfFacesConfig) Sort thefaces-config
documents found on the classpath and those specified by thejakarta.faces.CONFIG_FILES
context init parameter.
-
Constructor Details
-
Documents
public Documents()
-
-
Method Details
-
getXMLDocuments
public static DocumentInfo[] getXMLDocuments(jakarta.servlet.ServletContext servletContext, List<ConfigurationResourceProvider> providers, ExecutorService executor, boolean validating) Obtains an array of
Document
s to be processed- Parameters:
servletContext
- theServletContext
for the application to be processedproviders
-List
ofConfigurationResourceProvider
instances that provide the URL of the documents to parse.executor
- theExecutorService
used to dispatch parse request tovalidating
- flag indicating whether or not the documents should be validated- Returns:
- an array of
DocumentInfo
s
-
getProgrammaticDocuments
public static List<DocumentInfo> getProgrammaticDocuments(List<ApplicationConfigurationPopulator> configPopulators) throws ParserConfigurationException - Throws:
ParserConfigurationException
-
mergeDocuments
public static DocumentInfo[] mergeDocuments(DocumentInfo[] facesDocuments, List<DocumentInfo> programmaticDocuments) -
sortDocuments
public static DocumentInfo[] sortDocuments(DocumentInfo[] facesDocuments, FacesConfigInfo webInfFacesConfig) Sort the
faces-config
documents found on the classpath and those specified by thejakarta.faces.CONFIG_FILES
context init parameter.- Parameters:
facesDocuments
- an array of allfaces-config
documentswebInfFacesConfig
- FacesConfigInfo representing the WEB-INF/faces-config.xml for this app- Returns:
- the sorted documents
-