java.lang.Object
com.sun.faces.application.ApplicationAssociate
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFacesComponent(FacesComponentUsage facesComponentUsage) voidaddNavigationCase(NavigationCase navigationCase) Add a navigation case to the internal case set.voidaddResourceBundle(String var, ApplicationResourceBundle bundle) keys: element from faces-configprotected voidaddTagLibraries(Compiler newCompiler) static voidclearInstance(ExternalContext externalContext) static voidclearInstance(jakarta.servlet.ServletContext servletContext) protected CompilercreateCompiler(Map<String, Object> appMap, WebConfiguration webConfig) protected DefaultFaceletFactorycreateFaceletFactory(FacesContext context, Compiler compiler, WebConfiguration webConfig) jakarta.el.CompositeELResolvergetComponentsForNamespace(String namespace) static ApplicationAssociateList<jakarta.el.ELResolver>jakarta.el.ExpressionFactorystatic ApplicationAssociatestatic ApplicationAssociategetInstance(ExternalContext externalContext) static ApplicationAssociategetInstance(FacesContext facesContext) static ApplicationAssociategetInstance(jakarta.servlet.ServletContext context) Return aMapof navigation mappings loaded from the configuration system.Obtain the PropertyEditorHelper instance for this app.getResourceBundle(FacesContext context, String var) longbooleanvoidvoidbooleanbooleanbooleanprotected voidloadDecorators(Map<String, Object> appMap, Compiler newCompiler) voidrelateUrlToDefiningDocumentInJar(URL url, String definingDocumentId) voidvoidsetContextName(String contextName) static voidsetCurrentInstance(ApplicationAssociate associate) voidsetELResolversFromFacesConfig(List<jakarta.el.ELResolver> resolvers) voidsetErrorPagePresent(boolean errorPagePresent) voidsetExpressionFactory(jakarta.el.ExpressionFactory expressionFactory) voidsetFlowHandler(FlowHandler flowHandler) voidCalled by application code to indicate we've processed the first request to the application.voidvoidsetResourceManager(ResourceManager resourceManager) voidsetSearchExpressionHandler(SearchExpressionHandler searchExpressionHandler) booleanurlIsRelatedToDefiningDocumentInJar(URL candidateUrl, String definingDocumentId)
-
Constructor Details
-
ApplicationAssociate
-
-
Method Details
-
setCurrentInstance
-
getCurrentInstance
-
getInstance
-
getInstance
-
getInstance
-
getInstance
-
getApplication
-
setResourceLibraryContracts
-
initializeFacelets
public void initializeFacelets() -
getTimeOfInstantiation
public long getTimeOfInstantiation() -
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) -
initializeELResolverChains
public void initializeELResolverChains() -
isDevModeEnabled
public boolean isDevModeEnabled() -
getPropertyEditorHelper
Obtain the PropertyEditorHelper instance for this app.- Returns:
- The PropertyEditorHeler instance for this app.
-
getFlowHandler
-
setFlowHandler
-
getSearchExpressionHandler
-
setSearchExpressionHandler
-
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
-
setRequestServiced
public void setRequestServiced()Called by application code to indicate we've processed the first request to the application. -
hasRequestBeenServiced
public boolean hasRequestBeenServiced()- Returns:
trueif we've processed a request, otherwisefalse
-
addFacesComponent
-
getComponentsForNamespace
-
getNamedEventManager
-
getResourceBundle
-
addResourceBundle
keys: element from faces-configvalues: ResourceBundleBean instances.
- Parameters:
var- the variable namebundle- the application resource bundle
-
getResourceBundles
-
responseRendered
public void responseRendered() -
isResponseRendered
public boolean isResponseRendered() -
urlIsRelatedToDefiningDocumentInJar
-
relateUrlToDefiningDocumentInJar
-
createFaceletFactory
protected DefaultFaceletFactory createFaceletFactory(FacesContext context, Compiler compiler, WebConfiguration webConfig) -
createCompiler
-
loadDecorators
-
addTagLibraries
-