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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFacesComponent
(FacesComponentUsage facesComponentUsage) void
addNavigationCase
(NavigationCase navigationCase) Add a navigation case to the internal case set.void
addResourceBundle
(String var, ApplicationResourceBundle bundle) keys: element from faces-configprotected void
addTagLibraries
(Compiler newCompiler) static void
clearInstance
(ExternalContext externalContext) static void
clearInstance
(ServletContext servletContext) protected Compiler
createCompiler
(Map<String, Object> appMap, WebConfiguration webConfig) protected DefaultFaceletFactory
createFaceletFactory
(FacesContext context, Compiler compiler, WebConfiguration webConfig) getComponentsForNamespace
(String namespace) static ApplicationAssociate
static ApplicationAssociate
static ApplicationAssociate
getInstance
(ExternalContext externalContext) static ApplicationAssociate
getInstance
(FacesContext facesContext) static ApplicationAssociate
getInstance
(ServletContext context) Return aMap
of navigation mappings loaded from the configuration system.Obtain the PropertyEditorHelper instance for this app.getResourceBundle
(FacesContext context, String var) long
boolean
void
void
boolean
boolean
boolean
protected void
loadDecorators
(Map<String, Object> appMap, Compiler newCompiler) void
relateUrlToDefiningDocumentInJar
(URL url, String definingDocumentId) void
void
setContextName
(String contextName) static void
setCurrentInstance
(ApplicationAssociate associate) void
setELResolversFromFacesConfig
(List<ELResolver> resolvers) void
setErrorPagePresent
(boolean errorPagePresent) void
setExpressionFactory
(ExpressionFactory expressionFactory) void
setFlowHandler
(FlowHandler flowHandler) void
Called by application code to indicate we've processed the first request to the application.void
void
setResourceManager
(ResourceManager resourceManager) void
setSearchExpressionHandler
(SearchExpressionHandler searchExpressionHandler) boolean
urlIsRelatedToDefiningDocumentInJar
(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
-
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
-
getExpressionFactory
-
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:
true
if 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
-