public class FacesFlowDefinitionConfigProcessor extends AbstractConfigProcessor
This ConfigProcessor
handles all elements defined under
/faces-config/flow-definition
.
Modifier and Type | Class and Description |
---|---|
private static class |
FacesFlowDefinitionConfigProcessor.FlowDefinitionDocument |
private class |
FacesFlowDefinitionConfigProcessor.PerformDeferredFlowProcessing |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
FACES_FLOW_DEFINITION
/faces-config/flow-definition |
private static java.lang.String |
flowDefinitionListKey |
private static java.util.logging.Logger |
LOGGER |
Constructor and Description |
---|
FacesFlowDefinitionConfigProcessor() |
Modifier and Type | Method and Description |
---|---|
private void |
clearSavedFlowDefinitions(javax.faces.context.FacesContext context) |
protected java.lang.String |
getAttribute(org.w3c.dom.Node node,
java.lang.String attrName) |
protected java.lang.String |
getIdAttribute(org.w3c.dom.Node node) |
private java.util.List<FacesFlowDefinitionConfigProcessor.FlowDefinitionDocument> |
getSavedFlowDefinitions(javax.faces.context.FacesContext context) |
void |
process(javax.servlet.ServletContext sc,
DocumentInfo[] documentInfos)
Process the array of
Document s. |
private void |
processFacesFlowDefinitions(java.net.URI definingDocumentURI,
org.w3c.dom.Document document) |
private void |
processFlowCalls(javax.xml.xpath.XPath xpath,
org.w3c.dom.Node flowDefinition,
javax.faces.flow.builder.FlowBuilder flowBuilder) |
private void |
processInboundParameters(javax.xml.xpath.XPath xpath,
org.w3c.dom.Node flowDefinition,
javax.faces.flow.builder.FlowBuilder flowBuilder) |
private void |
processInitializerFinalizer(javax.xml.xpath.XPath xpath,
org.w3c.dom.Node flowDefinition,
javax.faces.flow.builder.FlowBuilder flowBuilder) |
private void |
processMethodCalls(javax.faces.context.FacesContext context,
javax.xml.xpath.XPath xpath,
org.w3c.dom.Node flowDefinition,
javax.faces.flow.builder.FlowBuilder flowBuilder) |
private void |
processNavigationRules(javax.xml.xpath.XPath xpath,
org.w3c.dom.Node flowDefinition,
javax.faces.flow.builder.FlowBuilder flowBuilder) |
private void |
processReturns(javax.xml.xpath.XPath xpath,
org.w3c.dom.Node flowDefinition,
javax.faces.flow.builder.FlowBuilder flowBuilder) |
private java.lang.String |
processStartNode(javax.xml.xpath.XPath xpath,
org.w3c.dom.Node flowDefinition,
javax.faces.flow.builder.FlowBuilder flowBuilder) |
private void |
processSwitches(javax.xml.xpath.XPath xpath,
org.w3c.dom.Node flowDefinition,
javax.faces.flow.builder.FlowBuilder flowBuilder) |
private void |
processViews(javax.xml.xpath.XPath xpath,
org.w3c.dom.Node flowDefinition,
javax.faces.flow.builder.FlowBuilder flowBuilder) |
private void |
saveFlowDefinition(javax.faces.context.FacesContext context,
java.net.URI definingDocumentURI,
org.w3c.dom.Document flowDefinitions) |
static org.w3c.dom.Document |
synthesizeEmptyFlowDefinition(java.net.URI uri) |
static boolean |
uriIsFlowDefinition(java.net.URI uri) |
createInstance, createInstance, createInstance, destroy, destroyInstance, destroyNext, findRootType, getApplication, getClassMetadataMapKey, getNext, getNodeText, getTextMap, initializeClassMetadataMap, invokeNext, loadClass, processAnnotations, setNext
private static final java.util.logging.Logger LOGGER
private static final java.lang.String FACES_FLOW_DEFINITION
/faces-config/flow-definition
private static final java.lang.String flowDefinitionListKey
public static boolean uriIsFlowDefinition(java.net.URI uri)
public static org.w3c.dom.Document synthesizeEmptyFlowDefinition(java.net.URI uri) throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
public void process(javax.servlet.ServletContext sc, DocumentInfo[] documentInfos) throws java.lang.Exception
ConfigProcessor
Process the array of Document
s.
sc
- the ServletContext
for the application being configureddocumentInfos
- @throws Exception if an error occurs during processingjava.lang.Exception
private void saveFlowDefinition(javax.faces.context.FacesContext context, java.net.URI definingDocumentURI, org.w3c.dom.Document flowDefinitions)
private java.util.List<FacesFlowDefinitionConfigProcessor.FlowDefinitionDocument> getSavedFlowDefinitions(javax.faces.context.FacesContext context)
private void clearSavedFlowDefinitions(javax.faces.context.FacesContext context)
private void processFacesFlowDefinitions(java.net.URI definingDocumentURI, org.w3c.dom.Document document) throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
private void processNavigationRules(javax.xml.xpath.XPath xpath, org.w3c.dom.Node flowDefinition, javax.faces.flow.builder.FlowBuilder flowBuilder) throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
private void processViews(javax.xml.xpath.XPath xpath, org.w3c.dom.Node flowDefinition, javax.faces.flow.builder.FlowBuilder flowBuilder) throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
private void processReturns(javax.xml.xpath.XPath xpath, org.w3c.dom.Node flowDefinition, javax.faces.flow.builder.FlowBuilder flowBuilder) throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
private void processInboundParameters(javax.xml.xpath.XPath xpath, org.w3c.dom.Node flowDefinition, javax.faces.flow.builder.FlowBuilder flowBuilder) throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
private void processFlowCalls(javax.xml.xpath.XPath xpath, org.w3c.dom.Node flowDefinition, javax.faces.flow.builder.FlowBuilder flowBuilder) throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
private void processSwitches(javax.xml.xpath.XPath xpath, org.w3c.dom.Node flowDefinition, javax.faces.flow.builder.FlowBuilder flowBuilder) throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
private void processMethodCalls(javax.faces.context.FacesContext context, javax.xml.xpath.XPath xpath, org.w3c.dom.Node flowDefinition, javax.faces.flow.builder.FlowBuilder flowBuilder) throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
private void processInitializerFinalizer(javax.xml.xpath.XPath xpath, org.w3c.dom.Node flowDefinition, javax.faces.flow.builder.FlowBuilder flowBuilder) throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
private java.lang.String processStartNode(javax.xml.xpath.XPath xpath, org.w3c.dom.Node flowDefinition, javax.faces.flow.builder.FlowBuilder flowBuilder) throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
protected java.lang.String getAttribute(org.w3c.dom.Node node, java.lang.String attrName)
protected java.lang.String getIdAttribute(org.w3c.dom.Node node) throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.