Top Fields Constructors Methods
com.sun.faces.config.manager

public Class Documents

extends Object
Class Inheritance
Static Imports
com.sun.faces.RIConstants.DOCUMENT_NAMESPACE, .RIConstants.DOCUMENT_VERSION, com.sun.faces.util.Util.createLocalDocumentBuilderFactory, .Util.isEmpty, java.util.Arrays.asList, java.util.logging.Level.INFO

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static DOMImplementation
private static Document
public static List<DocumentInfo>
public static DocumentInfo[]

Returns:

an array of DocumentInfos
getXMLDocuments
(ServletContext
the ServletContext for the application to be processed
servletContext
,
List<ConfigurationResourceProvider>
List of ConfigurationResourceProvider instances that provide the URL of the documents to parse.
providers
,
ExecutorService
the ExecutorService used to dispatch parse request to
executor
,
boolean
flag indicating whether or not the documents should be validated
validating
)

Obtains an array of Documents to be processed

public static DocumentInfo[]
mergeDocuments(DocumentInfo[] facesDocuments, List<DocumentInfo> programmaticDocuments)

public static DocumentInfo[]

Returns:

the sorted documents
sortDocuments
(DocumentInfo[]
an array of all faces-config documents
facesDocuments
,
FacesConfigInfo
FacesConfigInfo representing the WEB-INF/faces-config.xml for this app
webInfFacesConfig
)

Sort the faces-config documents found on the classpath and those specified by the jakarta.faces.CONFIG_FILES context init parameter.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

Documentsback to summary
public Documents()

Method Detail

createDOMImplementationback to summary
private static DOMImplementation createDOMImplementation() throws ParserConfigurationException
createEmptyFacesConfigDocumentback to summary
private static Document createEmptyFacesConfigDocument(DOMImplementation domImpl)
getProgrammaticDocumentsback to summary
public static List<DocumentInfo> getProgrammaticDocuments(List<ApplicationConfigurationPopulator> configPopulators) throws ParserConfigurationException
getXMLDocumentsback to summary
public static DocumentInfo[] getXMLDocuments(ServletContext servletContext, List<ConfigurationResourceProvider> providers, ExecutorService executor, boolean validating)

Obtains an array of Documents to be processed

Parameters
servletContext:ServletContext

the ServletContext for the application to be processed

providers:List<ConfigurationResourceProvider>

List of ConfigurationResourceProvider instances that provide the URL of the documents to parse.

executor:ExecutorService

the ExecutorService used to dispatch parse request to

validating:boolean

flag indicating whether or not the documents should be validated

Returns:DocumentInfo[]

an array of DocumentInfos

mergeDocumentsback to summary
public static DocumentInfo[] mergeDocuments(DocumentInfo[] facesDocuments, List<DocumentInfo> programmaticDocuments)
sortDocumentsback to summary
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:DocumentInfo[]

an array of all faces-config documents

webInfFacesConfig:FacesConfigInfo

FacesConfigInfo representing the WEB-INF/faces-config.xml for this app

Returns:DocumentInfo[]

the sorted documents