com.sun.faces.config.processor
public abstract class AbstractConfigProcessor extends java.lang.Object implements ConfigProcessor
This is the base ConfigProcessor
that all concrete
ConfigProcessor
implementations should extend.
Modifier and Type | Field and Description |
---|---|
private ConfigProcessor |
nextProcessor |
Constructor and Description |
---|
AbstractConfigProcessor() |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
buildMessage(java.lang.String cause,
org.w3c.dom.Node source) |
protected java.lang.Object |
createInstance(java.lang.String className,
java.lang.Class rootType,
java.lang.Object root,
org.w3c.dom.Node source) |
protected java.lang.Object |
createInstance(java.lang.String className,
org.w3c.dom.Node source) |
private java.lang.Object |
createScriptProxy(java.lang.Class<?> artifactType,
java.lang.String scriptName,
java.lang.Object root) |
protected java.lang.Class<?> |
findRootType(java.lang.String source,
org.w3c.dom.Node sourceNode,
java.lang.Class<?>[] ctorArguments) |
protected javax.faces.application.Application |
getApplication() |
protected java.lang.String |
getNodeText(org.w3c.dom.Node node)
Return the text of the specified
Node ,
if any. |
protected java.util.Map<java.lang.String,java.lang.String> |
getTextMap(java.util.List<org.w3c.dom.Node> list) |
void |
invokeNext(javax.servlet.ServletContext sc,
DocumentInfo[] documentInfos)
Invoke the
ConfigProcess specified by
a call to ConfigProcessor.setNext(ConfigProcessor) , if any. |
private boolean |
isDevModeEnabled() |
protected java.lang.Class<?> |
loadClass(java.lang.String className,
java.lang.Object fallback,
java.lang.Class<?> expectedType) |
protected void |
processAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
void |
setNext(ConfigProcessor nextProcessor)
Set the next
ConfigProcessor to be invoked once
ConfigProcessor.process(javax.servlet.ServletContext,com.sun.faces.config.DocumentInfo[])
has completed. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process
private ConfigProcessor nextProcessor
public void setNext(ConfigProcessor nextProcessor)
ConfigProcessor
Set the next ConfigProcessor
to be invoked once
ConfigProcessor.process(javax.servlet.ServletContext,com.sun.faces.config.DocumentInfo[])
has completed.
setNext
in interface ConfigProcessor
nextProcessor
- the next processor in the chain to be invokedConfigProcessor.setNext(ConfigProcessor)
public void invokeNext(javax.servlet.ServletContext sc, DocumentInfo[] documentInfos) throws java.lang.Exception
ConfigProcessor
Invoke the ConfigProcess
specified by
a call to ConfigProcessor.setNext(ConfigProcessor)
, if any.
invokeNext
in interface ConfigProcessor
sc
- the ServletContext
for the application being configureddocumentInfos
- @throws Exception if an error occurs invoking the next processorjava.lang.Exception
ConfigProcessor.invokeNext(javax.servlet.ServletContext,com.sun.faces.config.DocumentInfo[])
protected javax.faces.application.Application getApplication()
protected java.lang.String getNodeText(org.w3c.dom.Node node)
Return the text of the specified Node
,
if any.
node
- the Node
Node
If the length
of the text is zero, this method will return null
protected java.util.Map<java.lang.String,java.lang.String> getTextMap(java.util.List<org.w3c.dom.Node> list)
list
- a list of nodes representing textual elements such as
description or display-nameMap
of of textual values keyed off the values
of any lang or xml:lang attributes specified on an attribute. If no
such attribute exists, then the key ApplicationResourceBundle.DEFAULT_KEY
will be used (i.e. this represents the default Locale).protected java.lang.Class<?> findRootType(java.lang.String source, org.w3c.dom.Node sourceNode, java.lang.Class<?>[] ctorArguments)
protected java.lang.Object createInstance(java.lang.String className, org.w3c.dom.Node source)
protected java.lang.Object createInstance(java.lang.String className, java.lang.Class rootType, java.lang.Object root, org.w3c.dom.Node source)
protected java.lang.Class<?> loadClass(java.lang.String className, java.lang.Object fallback, java.lang.Class<?> expectedType) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
protected void processAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
private java.lang.String buildMessage(java.lang.String cause, org.w3c.dom.Node source)
private java.lang.Object createScriptProxy(java.lang.Class<?> artifactType, java.lang.String scriptName, java.lang.Object root)
private boolean isDevModeEnabled()
Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.