Package com.sun.faces.config.processor
Class AbstractConfigProcessor
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
,ManagedBeanConfigProcessor
,NavigationConfigProcessor
,ProtectedViewsConfigProcessor
,RenderKitConfigProcessor
,ResourceLibraryContractsConfigProcessor
,ValidatorConfigProcessor
public abstract class AbstractConfigProcessor extends Object implements ConfigProcessor
This is the base ConfigProcessor
that all concrete ConfigProcessor
implementations should
extend.
-
Constructor Summary
Constructors Constructor Description AbstractConfigProcessor()
-
Method Summary
Modifier and Type Method Description protected Object
createInstance(jakarta.servlet.ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source)
protected Object
createInstance(jakarta.servlet.ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source, boolean performInjection, boolean[] didPerformInjection)
protected Object
createInstance(jakarta.servlet.ServletContext sc, FacesContext facesContext, String className, Node source)
void
destroy(jakarta.servlet.ServletContext sc, FacesContext facesContext)
protected void
destroyInstance(jakarta.servlet.ServletContext sc, FacesContext facesContext, String className, Object instance)
protected Class<?>
findRootType(jakarta.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 specifiedNode
, if any.protected Map<String,String>
getTextMap(List<Node> list)
void
initializeClassMetadataMap(jakarta.servlet.ServletContext servletContext, FacesContext facesContext)
Called to initialize the per-application metadata used by the ConfigProcessorprotected Class<?>
loadClass(jakarta.servlet.ServletContext sc, FacesContext facesContext, String className, Object fallback, Class<?> expectedType)
protected void
processAnnotations(FacesContext ctx, Class<? extends Annotation> annotationType)
-
Constructor Details
-
AbstractConfigProcessor
public AbstractConfigProcessor()
-
-
Method Details
-
initializeClassMetadataMap
public void initializeClassMetadataMap(jakarta.servlet.ServletContext servletContext, FacesContext facesContext)Description copied from interface:ConfigProcessor
Called to initialize the per-application metadata used by the ConfigProcessor- Specified by:
initializeClassMetadataMap
in interfaceConfigProcessor
-
getClassMetadataMapKey
-
destroy
- Specified by:
destroy
in interfaceConfigProcessor
-
getApplication
- Returns:
- return the Application instance for this context.
-
getNodeText
Return the text of the specified
Node
, if any.- Parameters:
node
- theNode
- Returns:
- the text of the
Node
If the length of the text is zero, this method will returnnull
-
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(jakarta.servlet.ServletContext sc, FacesContext facesContext, String source, Node sourceNode, Class<?>[] ctorArguments) -
createInstance
protected Object createInstance(jakarta.servlet.ServletContext sc, FacesContext facesContext, String className, Node source) -
createInstance
-
createInstance
-
destroyInstance
protected void destroyInstance(jakarta.servlet.ServletContext sc, FacesContext facesContext, String className, Object instance) -
loadClass
protected Class<?> loadClass(jakarta.servlet.ServletContext sc, FacesContext facesContext, String className, Object fallback, Class<?> expectedType) throws ClassNotFoundException- Throws:
ClassNotFoundException
-
processAnnotations
-