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,
FacesContext facesContext,
String className,
Class<?> rootType,
Object root,
Node source) |
protected Object |
createInstance(javax.servlet.ServletContext sc,
FacesContext facesContext,
String className,
Class<?> rootType,
Object root,
Node source,
boolean performInjection,
boolean[] didPerformInjection) |
protected Object |
createInstance(javax.servlet.ServletContext sc,
FacesContext facesContext,
String className,
Node source) |
void |
destroy(javax.servlet.ServletContext sc,
FacesContext facesContext) |
protected void |
destroyInstance(javax.servlet.ServletContext sc,
FacesContext facesContext,
String className,
Object instance) |
protected Class<?> |
findRootType(javax.servlet.ServletContext sc,
FacesContext facesContext,
String source,
Node sourceNode,
Class<?>[] ctorArguments) |
protected Application |
getApplication() |
protected String |
getClassMetadataMapKey() |
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 servletContext,
FacesContext facesContext)
Called to initialize the per-application metadata used by the ConfigProcessor
|
protected Class<?> |
loadClass(javax.servlet.ServletContext sc,
FacesContext facesContext,
String className,
Object fallback,
Class<?> expectedType) |
protected void |
processAnnotations(FacesContext ctx,
Class<? extends Annotation> annotationType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process
public void initializeClassMetadataMap(javax.servlet.ServletContext servletContext, FacesContext facesContext)
ConfigProcessor
initializeClassMetadataMap
in interface ConfigProcessor
protected String getClassMetadataMapKey()
public void destroy(javax.servlet.ServletContext sc, FacesContext facesContext)
destroy
in interface ConfigProcessor
protected 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, FacesContext facesContext, String source, Node sourceNode, Class<?>[] ctorArguments)
protected Object createInstance(javax.servlet.ServletContext sc, FacesContext facesContext, String className, Node source)
protected Object createInstance(javax.servlet.ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source)
protected Object createInstance(javax.servlet.ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source, boolean performInjection, boolean[] didPerformInjection)
protected void destroyInstance(javax.servlet.ServletContext sc, FacesContext facesContext, String className, Object instance)
protected Class<?> loadClass(javax.servlet.ServletContext sc, FacesContext facesContext, String className, Object fallback, Class<?> expectedType) throws ClassNotFoundException
ClassNotFoundException
protected void processAnnotations(FacesContext ctx, Class<? extends Annotation> annotationType)
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.