Class 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 Detail

      • ApplicationAssociate

        public ApplicationAssociate​(ApplicationImpl appImpl)
    • Method Detail

      • getInstance

        public static ApplicationAssociate getInstance​(jakarta.servlet.ServletContext context)
      • setResourceLibraryContracts

        public void setResourceLibraryContracts​(Map<String,​List<String>> map)
      • initializeFacelets

        public void initializeFacelets()
      • getTimeOfInstantiation

        public long getTimeOfInstantiation()
      • getResourceLibraryContracts

        public Map<String,​List<String>> getResourceLibraryContracts()
      • setResourceManager

        public void setResourceManager​(ResourceManager resourceManager)
      • getCompiler

        public Compiler getCompiler()
      • isErrorPagePresent

        public boolean isErrorPagePresent()
      • setErrorPagePresent

        public void setErrorPagePresent​(boolean errorPagePresent)
      • clearInstance

        public static void clearInstance​(ExternalContext externalContext)
      • clearInstance

        public static void clearInstance​(jakarta.servlet.ServletContext servletContext)
      • initializeELResolverChains

        public void initializeELResolverChains()
      • isDevModeEnabled

        public boolean isDevModeEnabled()
      • getPropertyEditorHelper

        public PropertyEditorHelper getPropertyEditorHelper()
        Obtain the PropertyEditorHelper instance for this app.
        Returns:
        The PropertyEditorHeler instance for this app.
      • setFlowHandler

        public void setFlowHandler​(FlowHandler flowHandler)
      • setSearchExpressionHandler

        public void setSearchExpressionHandler​(SearchExpressionHandler searchExpressionHandler)
      • setELResolversFromFacesConfig

        public void setELResolversFromFacesConfig​(List<jakarta.el.ELResolver> resolvers)
      • getELResolversFromFacesConfig

        public List<jakarta.el.ELResolver> getELResolversFromFacesConfig()
      • setExpressionFactory

        public void setExpressionFactory​(jakarta.el.ExpressionFactory expressionFactory)
      • getExpressionFactory

        public jakarta.el.ExpressionFactory getExpressionFactory()
      • getApplicationELResolvers

        public jakarta.el.CompositeELResolver getApplicationELResolvers()
      • setContextName

        public void setContextName​(String contextName)
      • getContextName

        public String getContextName()
      • 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, otherwise false
      • addFacesComponent

        public void addFacesComponent​(FacesComponentUsage facesComponentUsage)
      • addNavigationCase

        public void addNavigationCase​(NavigationCase navigationCase)
        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 by from-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.
      • getNavigationCaseListMappings

        public Map<String,​Set<NavigationCase>> getNavigationCaseListMappings()
        Return a Map of navigation mappings loaded from the configuration system. The key for the returned Map is from-view-id, and the value is a List of navigation cases.
        Returns:
        Map the map of navigation mappings.
      • addResourceBundle

        public void addResourceBundle​(String var,
                                      ApplicationResourceBundle bundle)
        keys: element from faces-config

        values: ResourceBundleBean instances.

        Parameters:
        var - the variable name
        bundle - the application resource bundle
      • responseRendered

        public void responseRendered()
      • isResponseRendered

        public boolean isResponseRendered()
      • urlIsRelatedToDefiningDocumentInJar

        public boolean urlIsRelatedToDefiningDocumentInJar​(URL candidateUrl,
                                                           String definingDocumentId)
      • relateUrlToDefiningDocumentInJar

        public void relateUrlToDefiningDocumentInJar​(URL url,
                                                     String definingDocumentId)
      • addTagLibraries

        protected void addTagLibraries​(Compiler newCompiler)