java.lang.Object
com.sun.faces.config.processor.AbstractConfigProcessor
- All Implemented Interfaces:
ConfigProcessor
- Direct Known Subclasses:
ApplicationConfigProcessor
,BehaviorConfigProcessor
,ComponentConfigProcessor
,ConverterConfigProcessor
,FaceletTaglibConfigProcessor
,FacesConfigExtensionProcessor
,FacesFlowDefinitionConfigProcessor
,FactoryConfigProcessor
,LifecycleConfigProcessor
,NavigationConfigProcessor
,ProtectedViewsConfigProcessor
,RenderKitConfigProcessor
,ResourceLibraryContractsConfigProcessor
,ValidatorConfigProcessor
This is the base ConfigProcessor
that all concrete ConfigProcessor
implementations should
extend.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
createInstance
(ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source) protected Object
createInstance
(ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source, boolean performInjection, boolean[] didPerformInjection) protected Object
createInstance
(ServletContext sc, FacesContext facesContext, String className, Node source) void
destroy
(ServletContext sc, FacesContext facesContext) protected void
destroyInstance
(ServletContext sc, FacesContext facesContext, String className, Object instance) protected Class
<?> findRootType
(ServletContext sc, FacesContext facesContext, String source, Node sourceNode, Class<?>[] ctorArguments) protected Application
protected String
protected String
getNodeText
(Node node) Return the text of the specifiedNode
, if any.getTextMap
(List<Node> list) void
initializeClassMetadataMap
(ServletContext servletContext, FacesContext facesContext) Called to initialize the per-application metadata used by the ConfigProcessorprotected Class
<?> loadClass
(ServletContext sc, FacesContext facesContext, String className, Object fallback, Class<?> expectedType) protected void
processAnnotations
(FacesContext ctx, Class<? extends Annotation> annotationType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sun.faces.config.processor.ConfigProcessor
process
-
Constructor Details
-
AbstractConfigProcessor
public AbstractConfigProcessor()
-
-
Method Details
-
initializeClassMetadataMap
Description copied from interface:ConfigProcessor
Called to initialize the per-application metadata used by the ConfigProcessor- Specified by:
initializeClassMetadataMap
in interfaceConfigProcessor
- Parameters:
servletContext
- the involved servlet contextfacesContext
- the involved faces context
-
getClassMetadataMapKey
-
destroy
- Specified by:
destroy
in interfaceConfigProcessor
-
getApplication
- Returns:
- return the Application instance for this context.
-
getNodeText
-
getTextMap
- Parameters:
list
- a list of nodes representing textual elements such as description or display-name- Returns:
- a
Map
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 keyApplicationResourceBundle.DEFAULT_KEY
will be used (i.e. this represents the default Locale).
-
findRootType
protected Class<?> findRootType(ServletContext sc, FacesContext facesContext, String source, Node sourceNode, Class<?>[] ctorArguments) -
createInstance
protected Object createInstance(ServletContext sc, FacesContext facesContext, String className, Node source) -
createInstance
protected Object createInstance(ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source) -
createInstance
protected Object createInstance(ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source, boolean performInjection, boolean[] didPerformInjection) -
destroyInstance
protected void destroyInstance(ServletContext sc, FacesContext facesContext, String className, Object instance) -
loadClass
protected Class<?> loadClass(ServletContext sc, FacesContext facesContext, String className, Object fallback, Class<?> expectedType) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
processAnnotations
-