public abstract class AbstractConfigProcessor extends Object implements ConfigProcessor
This is the base ConfigProcessor
that all concrete
ConfigProcessor
implementations should extend.
Constructor and Description |
---|
AbstractConfigProcessor() |
Modifier and Type | Method and Description |
---|---|
protected Object |
createInstance(javax.servlet.ServletContext sc,
String className,
Class rootType,
Object root,
Node source) |
protected Object |
createInstance(javax.servlet.ServletContext sc,
String className,
Class rootType,
Object root,
Node source,
boolean performInjection,
boolean[] didPerformInjection) |
protected Object |
createInstance(javax.servlet.ServletContext sc,
String className,
Node source) |
void |
destroy(javax.servlet.ServletContext sc) |
protected void |
destroyInstance(javax.servlet.ServletContext sc,
String className,
Object instance) |
void |
destroyNext(javax.servlet.ServletContext sc) |
protected Class<?> |
findRootType(javax.servlet.ServletContext sc,
String source,
Node sourceNode,
Class<?>[] ctorArguments) |
protected javax.faces.application.Application |
getApplication() |
protected String |
getClassMetadataMapKey() |
ConfigProcessor |
getNext()
Return the next config processor in the chain, or null.
|
protected String |
getNodeText(Node node)
Return the text of the specified
Node ,
if any. |
protected Map<String,String> |
getTextMap(List<Node> list) |
void |
initializeClassMetadataMap(javax.servlet.ServletContext sc) |
void |
invokeNext(javax.servlet.ServletContext sc,
DocumentInfo[] documentInfos)
Invoke the
ConfigProcess specified by
a call to ConfigProcessor.setNext(ConfigProcessor) , if any. |
protected Class<?> |
loadClass(javax.servlet.ServletContext sc,
String className,
Object fallback,
Class<?> expectedType) |
protected void |
processAnnotations(Class<? extends 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
public void initializeClassMetadataMap(javax.servlet.ServletContext sc)
initializeClassMetadataMap
in interface ConfigProcessor
protected String getClassMetadataMapKey()
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 ConfigProcessor getNext()
ConfigProcessor
Return the next config processor in the chain, or null.
getNext
in interface ConfigProcessor
public void invokeNext(javax.servlet.ServletContext sc, DocumentInfo[] documentInfos) throws 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 processorException
ConfigProcessor.invokeNext(javax.servlet.ServletContext,com.sun.faces.config.DocumentInfo[])
public void destroyNext(javax.servlet.ServletContext sc)
destroyNext
in interface ConfigProcessor
public void destroy(javax.servlet.ServletContext sc)
destroy
in interface ConfigProcessor
protected javax.faces.application.Application getApplication()
protected String getNodeText(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 Map<String,String> getTextMap(List<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 Class<?> findRootType(javax.servlet.ServletContext sc, String source, Node sourceNode, Class<?>[] ctorArguments)
protected Object createInstance(javax.servlet.ServletContext sc, String className, Node source)
protected Object createInstance(javax.servlet.ServletContext sc, String className, Class rootType, Object root, Node source)
protected Object createInstance(javax.servlet.ServletContext sc, String className, Class rootType, Object root, Node source, boolean performInjection, boolean[] didPerformInjection)
protected void destroyInstance(javax.servlet.ServletContext sc, String className, Object instance)
protected Class<?> loadClass(javax.servlet.ServletContext sc, String className, Object fallback, Class<?> expectedType) throws ClassNotFoundException
ClassNotFoundException
protected void processAnnotations(Class<? extends Annotation> annotationType)
Copyright © 2010–2019 JBoss by Red Hat. All rights reserved.