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 and Description |
---|
ApplicationAssociate(ApplicationImpl appImpl) |
Modifier and Type | Method and Description |
---|---|
void |
addFacesComponent(FacesComponentUsage facesComponentUsage) |
void |
addNavigationCase(javax.faces.application.NavigationCase navigationCase)
Add a navigation case to the internal case set.
|
void |
addResourceBundle(String var,
ApplicationResourceBundle bundle) |
static void |
clearInstance(javax.faces.context.ExternalContext externalContext) |
static void |
clearInstance(javax.servlet.ServletContext sc) |
protected Compiler |
createCompiler(Map<String,Object> appMap,
WebConfiguration webConfig) |
protected DefaultFaceletFactory |
createFaceletFactory(javax.faces.context.FacesContext ctx,
Compiler c,
WebConfiguration webConfig) |
AnnotationManager |
getAnnotationManager() |
javax.faces.application.Application |
getApplication() |
javax.el.CompositeELResolver |
getApplicationELResolvers() |
ApplicationStateInfo |
getApplicationStateInfo() |
BeanManager |
getBeanManager() |
Compiler |
getCompiler() |
List<FacesComponentUsage> |
getComponentsForNamespace(String ns) |
String |
getContextName() |
static ApplicationAssociate |
getCurrentInstance() |
List<javax.el.ELResolver> |
getELResolversFromFacesConfig() |
javax.el.ExpressionFactory |
getExpressionFactory() |
DefaultFaceletFactory |
getFaceletFactory() |
FacesCompositeELResolver |
getFacesELResolverForJsp() |
javax.faces.flow.FlowHandler |
getFlowHandler() |
GroovyHelper |
getGroovyHelper() |
InjectionProvider |
getInjectionProvider() |
static ApplicationAssociate |
getInstance(javax.faces.context.ExternalContext externalContext) |
static ApplicationAssociate |
getInstance(javax.servlet.ServletContext context) |
javax.faces.el.PropertyResolver |
getLegacyPRChainHead() |
javax.faces.el.PropertyResolver |
getLegacyPropertyResolver() |
javax.faces.el.VariableResolver |
getLegacyVariableResolver() |
javax.faces.el.VariableResolver |
getLegacyVRChainHead() |
VariableResolverChainWrapper |
getLegacyVRChainHeadWrapperForFaces() |
VariableResolverChainWrapper |
getLegacyVRChainHeadWrapperForJsp() |
NamedEventManager |
getNamedEventManager() |
Map<String,Set<javax.faces.application.NavigationCase>> |
getNavigationCaseListMappings()
Return a
Map of navigation mappings loaded from
the configuration system. |
PropertyEditorHelper |
getPropertyEditorHelper()
Obtain the PropertyEditorHelper instance for this app.
|
ResourceBundle |
getResourceBundle(javax.faces.context.FacesContext context,
String var) |
Map<String,ApplicationResourceBundle> |
getResourceBundles() |
ResourceCache |
getResourceCache() |
Map<String,List<String>> |
getResourceLibraryContracts() |
ResourceManager |
getResourceManager() |
javax.faces.component.search.SearchExpressionHandler |
getSearchExpressionHandler() |
long |
getTimeOfInstantiation() |
boolean |
hasRequestBeenServiced() |
void |
initializeELResolverChains() |
void |
initializeFacelets() |
void |
installProgrammaticallyAddedResolvers() |
boolean |
isDevModeEnabled() |
boolean |
isErrorPagePresent() |
boolean |
isPushBuilderSupported() |
boolean |
isResponseRendered() |
void |
relateUrlToDefiningDocumentInJar(URL url,
String definingDocumentId) |
void |
responseRendered() |
void |
setContextName(String contextName) |
static void |
setCurrentInstance(ApplicationAssociate associate) |
void |
setELResolversFromFacesConfig(List<javax.el.ELResolver> resolvers) |
void |
setErrorPagePresent(boolean errorPagePresent) |
void |
setExpressionFactory(javax.el.ExpressionFactory expressionFactory) |
void |
setFacesELResolverForJsp(FacesCompositeELResolver celr) |
void |
setFlowHandler(javax.faces.flow.FlowHandler flowHandler) |
void |
setLegacyPRChainHead(javax.faces.el.PropertyResolver resolver)
This method is called by
ConfigureListener and will
contain any PropertyResolvers defined within
faces-config configuration files. |
void |
setLegacyPropertyResolver(javax.faces.el.PropertyResolver resolver)
Maintains the PropertyResolver called through
Application.setPropertyResolver()
|
void |
setLegacyVariableResolver(javax.faces.el.VariableResolver resolver)
Maintains the PropertyResolver called through
Application.setVariableResolver()
|
void |
setLegacyVRChainHead(javax.faces.el.VariableResolver resolver)
This method is called by
ConfigureListener and will
contain any VariableResolvers defined within
faces-config configuration files. |
void |
setLegacyVRChainHeadWrapperForFaces(VariableResolverChainWrapper legacyVRChainHeadWrapperForFaces) |
void |
setLegacyVRChainHeadWrapperForJsp(VariableResolverChainWrapper legacyVRChainHeadWrapper) |
void |
setRequestServiced()
Called by application code to indicate we've processed the
first request to the application.
|
void |
setResourceLibraryContracts(HashMap<String,List<String>> map) |
void |
setResourceManager(ResourceManager resourceManager) |
void |
setSearchExpressionHandler(javax.faces.component.search.SearchExpressionHandler searchExpressionHandler) |
boolean |
urlIsRelatedToDefiningDocumentInJar(URL candidateUrl,
String definingDocumentId) |
public ApplicationAssociate(ApplicationImpl appImpl)
public javax.faces.application.Application getApplication()
public void setResourceLibraryContracts(HashMap<String,List<String>> map)
public void initializeFacelets()
public static ApplicationAssociate getInstance(javax.faces.context.ExternalContext externalContext)
public long getTimeOfInstantiation()
public static ApplicationAssociate getInstance(javax.servlet.ServletContext context)
public static void setCurrentInstance(ApplicationAssociate associate)
public static ApplicationAssociate getCurrentInstance()
public ApplicationStateInfo getApplicationStateInfo()
public ResourceManager getResourceManager()
public void setResourceManager(ResourceManager resourceManager)
public ResourceCache getResourceCache()
public AnnotationManager getAnnotationManager()
public Compiler getCompiler()
public boolean isErrorPagePresent()
public void setErrorPagePresent(boolean errorPagePresent)
public DefaultFaceletFactory getFaceletFactory()
public static void clearInstance(javax.faces.context.ExternalContext externalContext)
public static void clearInstance(javax.servlet.ServletContext sc)
public BeanManager getBeanManager()
public GroovyHelper getGroovyHelper()
public void initializeELResolverChains()
public void installProgrammaticallyAddedResolvers()
public boolean isDevModeEnabled()
public boolean isPushBuilderSupported()
public PropertyEditorHelper getPropertyEditorHelper()
public void setLegacyVRChainHead(javax.faces.el.VariableResolver resolver)
ConfigureListener
and will
contain any VariableResolvers
defined within
faces-config configuration files.resolver
- VariableResolverpublic javax.faces.el.VariableResolver getLegacyVRChainHead()
public VariableResolverChainWrapper getLegacyVRChainHeadWrapperForJsp()
public void setLegacyVRChainHeadWrapperForJsp(VariableResolverChainWrapper legacyVRChainHeadWrapper)
public VariableResolverChainWrapper getLegacyVRChainHeadWrapperForFaces()
public void setLegacyVRChainHeadWrapperForFaces(VariableResolverChainWrapper legacyVRChainHeadWrapperForFaces)
public void setLegacyPRChainHead(javax.faces.el.PropertyResolver resolver)
ConfigureListener
and will
contain any PropertyResolvers
defined within
faces-config configuration files.resolver
- PropertyResolverpublic javax.faces.el.PropertyResolver getLegacyPRChainHead()
public FacesCompositeELResolver getFacesELResolverForJsp()
public javax.faces.flow.FlowHandler getFlowHandler()
public void setFlowHandler(javax.faces.flow.FlowHandler flowHandler)
public javax.faces.component.search.SearchExpressionHandler getSearchExpressionHandler()
public void setSearchExpressionHandler(javax.faces.component.search.SearchExpressionHandler searchExpressionHandler)
public void setFacesELResolverForJsp(FacesCompositeELResolver celr)
public void setELResolversFromFacesConfig(List<javax.el.ELResolver> resolvers)
public List<javax.el.ELResolver> getELResolversFromFacesConfig()
public void setExpressionFactory(javax.el.ExpressionFactory expressionFactory)
public javax.el.ExpressionFactory getExpressionFactory()
public javax.el.CompositeELResolver getApplicationELResolvers()
public InjectionProvider getInjectionProvider()
public void setContextName(String contextName)
public String getContextName()
public void setLegacyPropertyResolver(javax.faces.el.PropertyResolver resolver)
resolver
- PropertyResolverpublic javax.faces.el.PropertyResolver getLegacyPropertyResolver()
public void setLegacyVariableResolver(javax.faces.el.VariableResolver resolver)
resolver
- VariableResolverpublic javax.faces.el.VariableResolver getLegacyVariableResolver()
public void setRequestServiced()
public boolean hasRequestBeenServiced()
true
if we've processed a request, otherwise
false
public void addFacesComponent(FacesComponentUsage facesComponentUsage)
public List<FacesComponentUsage> getComponentsForNamespace(String ns)
public void addNavigationCase(javax.faces.application.NavigationCase navigationCase)
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.navigationCase
- the navigation case containing navigation
mapping information from the configuration file.public NamedEventManager getNamedEventManager()
public Map<String,Set<javax.faces.application.NavigationCase>> getNavigationCaseListMappings()
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.public ResourceBundle getResourceBundle(javax.faces.context.FacesContext context, String var)
public void addResourceBundle(String var, ApplicationResourceBundle bundle)
public Map<String,ApplicationResourceBundle> getResourceBundles()
public void responseRendered()
public boolean isResponseRendered()
public boolean urlIsRelatedToDefiningDocumentInJar(URL candidateUrl, String definingDocumentId)
public void relateUrlToDefiningDocumentInJar(URL url, String definingDocumentId)
protected DefaultFaceletFactory createFaceletFactory(javax.faces.context.FacesContext ctx, Compiler c, WebConfiguration webConfig)
protected Compiler createCompiler(Map<String,Object> appMap, WebConfiguration webConfig)
Copyright © 2010–2019 JBoss by Red Hat. All rights reserved.