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 Detail
-
ApplicationAssociate
public ApplicationAssociate(ApplicationImpl appImpl)
-
-
Method Detail
-
setCurrentInstance
public static void setCurrentInstance(ApplicationAssociate associate)
-
getCurrentInstance
public static ApplicationAssociate getCurrentInstance()
-
getInstance
public static ApplicationAssociate getInstance()
-
getInstance
public static ApplicationAssociate getInstance(ExternalContext externalContext)
-
getInstance
public static ApplicationAssociate getInstance(jakarta.servlet.ServletContext context)
-
getApplication
public Application getApplication()
-
initializeFacelets
public void initializeFacelets()
-
getTimeOfInstantiation
public long getTimeOfInstantiation()
-
getApplicationStateInfo
public ApplicationStateInfo getApplicationStateInfo()
-
getResourceManager
public ResourceManager getResourceManager()
-
setResourceManager
public void setResourceManager(ResourceManager resourceManager)
-
getResourceCache
public ResourceCache getResourceCache()
-
getAnnotationManager
public AnnotationManager getAnnotationManager()
-
getCompiler
public Compiler getCompiler()
-
isErrorPagePresent
public boolean isErrorPagePresent()
-
setErrorPagePresent
public void setErrorPagePresent(boolean errorPagePresent)
-
getFaceletFactory
public DefaultFaceletFactory getFaceletFactory()
-
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.
-
getFlowHandler
public FlowHandler getFlowHandler()
-
setFlowHandler
public void setFlowHandler(FlowHandler flowHandler)
-
getSearchExpressionHandler
public SearchExpressionHandler getSearchExpressionHandler()
-
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()
-
getInjectionProvider
public InjectionProvider getInjectionProvider()
-
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, otherwisefalse
-
addFacesComponent
public void addFacesComponent(FacesComponentUsage facesComponentUsage)
-
getComponentsForNamespace
public List<FacesComponentUsage> getComponentsForNamespace(String namespace)
-
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 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
public NamedEventManager getNamedEventManager()
-
getNavigationCaseListMappings
public Map<String,Set<NavigationCase>> 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
public ResourceBundle getResourceBundle(FacesContext context, String var)
-
addResourceBundle
public void addResourceBundle(String var, ApplicationResourceBundle bundle)
keys: element from faces-configvalues: ResourceBundleBean instances.
- Parameters:
var
- the variable namebundle
- the application resource bundle
-
getResourceBundles
public Map<String,ApplicationResourceBundle> getResourceBundles()
-
responseRendered
public void responseRendered()
-
isResponseRendered
public boolean isResponseRendered()
-
urlIsRelatedToDefiningDocumentInJar
public boolean urlIsRelatedToDefiningDocumentInJar(URL candidateUrl, String definingDocumentId)
-
relateUrlToDefiningDocumentInJar
public void relateUrlToDefiningDocumentInJar(URL url, String definingDocumentId)
-
createFaceletFactory
protected DefaultFaceletFactory createFaceletFactory(FacesContext context, Compiler compiler, WebConfiguration webConfig)
-
createCompiler
protected Compiler createCompiler(Map<String,Object> appMap, WebConfiguration webConfig)
-
addTagLibraries
protected void addTagLibraries(Compiler newCompiler)
-
-