Package com.sun.faces.application
Class ApplicationAssociate
java.lang.Object
com.sun.faces.application.ApplicationAssociate
public class ApplicationAssociate extends Object
Break out the things that are associated with the Application, but need to be present even when the user has replaced the Application instance.
For example: the user replaces ApplicationFactory, and wants to intercept calls to createValueExpression() and createMethodExpression() for certain kinds of expressions, but allow the existing application to handle the rest.
-
Constructor Summary
Constructors Constructor Description ApplicationAssociate(ApplicationImpl appImpl)
-
Method Summary
-
Constructor Details
-
Method Details
-
getApplication
-
setResourceLibraryContracts
-
initializeFacelets
public void initializeFacelets() -
getInstance
-
getTimeOfInstantiation
public long getTimeOfInstantiation() -
getInstance
-
setCurrentInstance
-
getCurrentInstance
-
getApplicationStateInfo
-
getResourceManager
-
getResourceLibraryContracts
-
setResourceManager
-
getResourceCache
-
getAnnotationManager
-
getCompiler
-
isErrorPagePresent
public boolean isErrorPagePresent() -
setErrorPagePresent
public void setErrorPagePresent(boolean errorPagePresent) -
getFaceletFactory
-
clearInstance
-
clearInstance
public static void clearInstance(jakarta.servlet.ServletContext servletContext) -
getBeanManager
-
initializeELResolverChains
public void initializeELResolverChains() -
installProgrammaticallyAddedResolvers
public void installProgrammaticallyAddedResolvers() -
isDevModeEnabled
public boolean isDevModeEnabled() -
isPushBuilderSupported
public boolean isPushBuilderSupported() -
getPropertyEditorHelper
Obtain the PropertyEditorHelper instance for this app.- Returns:
- The PropertyEditorHeler instance for this app.
-
setLegacyVRChainHead
This method is called byConfigureListener
and will contain anyVariableResolvers
defined within faces-config configuration files.- Parameters:
resolver
- VariableResolver
-
getLegacyVRChainHead
-
getLegacyVRChainHeadWrapperForJsp
-
setLegacyVRChainHeadWrapperForJsp
public void setLegacyVRChainHeadWrapperForJsp(VariableResolverChainWrapper legacyVRChainHeadWrapper) -
getLegacyVRChainHeadWrapperForFaces
-
setLegacyVRChainHeadWrapperForFaces
public void setLegacyVRChainHeadWrapperForFaces(VariableResolverChainWrapper legacyVRChainHeadWrapperForFaces) -
setLegacyPRChainHead
This method is called byConfigureListener
and will contain anyPropertyResolvers
defined within faces-config configuration files.- Parameters:
resolver
- PropertyResolver
-
getLegacyPRChainHead
-
getFacesELResolverForJsp
-
getFlowHandler
-
setFlowHandler
-
getSearchExpressionHandler
-
setSearchExpressionHandler
-
setFacesELResolverForJsp
-
setELResolversFromFacesConfig
-
getELResolversFromFacesConfig
-
setExpressionFactory
public void setExpressionFactory(jakarta.el.ExpressionFactory expressionFactory) -
getExpressionFactory
public jakarta.el.ExpressionFactory getExpressionFactory() -
getApplicationELResolvers
public jakarta.el.CompositeELResolver getApplicationELResolvers() -
getInjectionProvider
-
setContextName
-
getContextName
-
setLegacyPropertyResolver
Maintains the PropertyResolver called through Application.setPropertyResolver()- Parameters:
resolver
- PropertyResolver
-
getLegacyPropertyResolver
- Returns:
- the PropertyResolver called through Application.getPropertyResolver()
-
setLegacyVariableResolver
Maintains the PropertyResolver called through Application.setVariableResolver()- Parameters:
resolver
- VariableResolver
-
getLegacyVariableResolver
- Returns:
- the VariableResolver called through Application.getVariableResolver()
-
setRequestServiced
public void setRequestServiced()Called by application code to indicate we've processed the first request to the application. -
hasRequestBeenServiced
public boolean hasRequestBeenServiced()- Returns:
true
if we've processed a request, otherwisefalse
-
addFacesComponent
-
getComponentsForNamespace
-
addNavigationCase
Add a navigation case to the internal case set. If a case set does not already exist in the case list map containing this case (identified byfrom-view-id
), start a new list, add the case to it, and store the set in the case set map. If a case set already exists, overwrite the previous case.- Parameters:
navigationCase
- the navigation case containing navigation mapping information from the configuration file.
-
getNamedEventManager
-
getNavigationCaseListMappings
Return aMap
of navigation mappings loaded from the configuration system. The key for the returnedMap
isfrom-view-id
, and the value is aList
of navigation cases.- Returns:
- Map the map of navigation mappings.
-
getResourceBundle
-
addResourceBundle
keys: element from faces-config -
getResourceBundles
-
responseRendered
public void responseRendered() -
isResponseRendered
public boolean isResponseRendered() -
urlIsRelatedToDefiningDocumentInJar
-
relateUrlToDefiningDocumentInJar
-
createFaceletFactory
protected DefaultFaceletFactory createFaceletFactory(FacesContext ctx, Compiler compiler, WebConfiguration webConfig) -
createCompiler
-
loadDecorators
-
addTagLibraries
-