Class Documents

java.lang.Object
com.sun.faces.config.manager.Documents

public class Documents extends Object
  • 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 Documents to be processed

      Parameters:
      servletContext - the ServletContext for the application to be processed
      providers - List of ConfigurationResourceProvider instances that provide the URL of the documents to parse.
      executor - the ExecutorService used to dispatch parse request to
      validating - flag indicating whether or not the documents should be validated
      Returns:
      an array of DocumentInfos
    • 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 the jakarta.faces.CONFIG_FILES context init parameter.

      Parameters:
      facesDocuments - an array of all faces-config documents
      webInfFacesConfig - FacesConfigInfo representing the WEB-INF/faces-config.xml for this app
      Returns:
      the sorted documents