Top Description Fields Constructors Methods
com.sun.faces.config.processor

public abstract Class AbstractConfigProcessor

extends Object
implements ConfigProcessor
Class Inheritance
All Implemented Interfaces
com.sun.faces.config.processor.ConfigProcessor
Known Direct Subclasses
com.sun.faces.config.processor.ApplicationConfigProcessor, com.sun.faces.config.processor.BehaviorConfigProcessor, com.sun.faces.config.processor.ComponentConfigProcessor, com.sun.faces.config.processor.ConverterConfigProcessor, com.sun.faces.config.processor.FaceletTaglibConfigProcessor, com.sun.faces.config.processor.FacesConfigExtensionProcessor, com.sun.faces.config.processor.FacesFlowDefinitionConfigProcessor, com.sun.faces.config.processor.FactoryConfigProcessor, com.sun.faces.config.processor.LifecycleConfigProcessor, com.sun.faces.config.processor.NavigationConfigProcessor, com.sun.faces.config.processor.ProtectedViewsConfigProcessor, com.sun.faces.config.processor.RenderKitConfigProcessor, com.sun.faces.config.processor.ResourceLibraryContractsConfigProcessor, com.sun.faces.config.processor.ValidatorConfigProcessor
Static Imports
com.sun.faces.application.ApplicationResourceBundle.DEFAULT_KEY, com.sun.faces.config.ConfigManager.INJECTION_PROVIDER_KEY, .WebConfiguration.WebContextInitParameter.JakartaFacesProjectStage, com.sun.faces.util.ReflectionUtils.lookupConstructor, jakarta.faces.FactoryFinder.APPLICATION_FACTORY, jakarta.faces.application.ProjectStage.Development, .ProjectStage.Production, java.text.MessageFormat.format, java.util.logging.Level.FINE, .Level.INFO, .Level.SEVERE

This is the base ConfigProcessor that all concrete ConfigProcessor implementations should extend.

Field Summary

Modifier and TypeField and Description
private static final String
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private String
buildMessage(String cause, Node source)

protected Object
createInstance(ServletContext sc, FacesContext facesContext, String className, Node source)

protected 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)

public void
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

Returns:

return the Application instance for this context.
getApplication
()

private ApplicationInstanceFactoryMetadataMap<String, Object>
protected String
protected String

Returns:

the text of the Node If the length of the text is zero, this method will return null
getNodeText
(Node
the Node
node
)

Return the text of the specified Node, if any.

private ProjectStage
protected Map<String, String>

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 key ApplicationResourceBundle#DEFAULT_KEY will be used (i.e. this represents the default Locale).
getTextMap
(List<Node>
a list of nodes representing textual elements such as description or display-name
list
)

public void
initializeClassMetadataMap(ServletContext
the involved servlet context
servletContext
,
FacesContext
the involved faces context
facesContext
)

Implements com.sun.faces.config.processor.ConfigProcessor.initializeClassMetadataMap.

Called to initialize the per-application metadata used by the ConfigProcessor

private boolean
protected Class<?>
loadClass(ServletContext sc, FacesContext facesContext, String className, Object fallback, Class<?> expectedType)

protected void
processAnnotations(FacesContext ctx, Class<? extends Annotation> annotationType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CLASS_METADATA_MAP_KEY_SUFFIXback to summary
private static final String CLASS_METADATA_MAP_KEY_SUFFIX
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

AbstractConfigProcessorback to summary
public AbstractConfigProcessor()

Method Detail

buildMessageback to summary
private String buildMessage(String cause, Node source)
createInstanceback to summary
protected Object createInstance(ServletContext sc, FacesContext facesContext, String className, Node source)
createInstanceback to summary
protected Object createInstance(ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source)
createInstanceback to summary
protected Object createInstance(ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source, boolean performInjection, boolean[] didPerformInjection)
destroyback to summary
public void destroy(ServletContext sc, FacesContext facesContext)

Implements com.sun.faces.config.processor.ConfigProcessor.destroy.

Annotations
@Override
destroyInstanceback to summary
protected void destroyInstance(ServletContext sc, FacesContext facesContext, String className, Object instance)
findRootTypeback to summary
protected Class<?> findRootType(ServletContext sc, FacesContext facesContext, String source, Node sourceNode, Class<?>[] ctorArguments)
getApplicationback to summary
protected Application getApplication()
Returns:Application

return the Application instance for this context.

getClassMetadataMapback to summary
private ApplicationInstanceFactoryMetadataMap<String, Object> getClassMetadataMap(ServletContext servletContext)
getClassMetadataMapKeyback to summary
protected String getClassMetadataMapKey()
getNodeTextback to summary
protected String getNodeText(Node node)

Return the text of the specified Node, if any.

Parameters
node:Node

the Node

Returns:String

the text of the Node If the length of the text is zero, this method will return null

getProjectStageback to summary
private ProjectStage getProjectStage(ServletContext sc, FacesContext facesContext)
getTextMapback to summary
protected Map<String, String> getTextMap(List<Node> list)
Parameters
list:List<Node>

a list of nodes representing textual elements such as description or display-name

Returns:Map<String, String>

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 key ApplicationResourceBundle#DEFAULT_KEY will be used (i.e. this represents the default Locale).

initializeClassMetadataMapback to summary
public void initializeClassMetadataMap(ServletContext servletContext, FacesContext facesContext)

Implements com.sun.faces.config.processor.ConfigProcessor.initializeClassMetadataMap.

Doc from com.sun.faces.config.processor.ConfigProcessor.initializeClassMetadataMap.

Called to initialize the per-application metadata used by the ConfigProcessor

Parameters
servletContext:ServletContext

the involved servlet context

facesContext:FacesContext

the involved faces context

Annotations
@Override
isDevModeEnabledback to summary
private boolean isDevModeEnabled(ServletContext sc, FacesContext facesContext)
loadClassback to summary
protected Class<?> loadClass(ServletContext sc, FacesContext facesContext, String className, Object fallback, Class<?> expectedType) throws ClassNotFoundException
processAnnotationsback to summary
protected void processAnnotations(FacesContext ctx, Class<? extends Annotation> annotationType)