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) |
public ApplicationAssociate(ApplicationImpl appImpl)
public Application getApplication()
public void initializeFacelets()
public static ApplicationAssociate getInstance(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(ExternalContext externalContext)
public static void clearInstance(javax.servlet.ServletContext servletContext)
public BeanManager getBeanManager()
public void initializeELResolverChains()
public void installProgrammaticallyAddedResolvers()
public boolean isDevModeEnabled()
public boolean isPushBuilderSupported()
public PropertyEditorHelper getPropertyEditorHelper()
public void setLegacyVRChainHead(VariableResolver resolver)
ConfigureListener
and will contain any
VariableResolvers
defined within faces-config configuration files.resolver
- VariableResolverpublic VariableResolver getLegacyVRChainHead()
public VariableResolverChainWrapper getLegacyVRChainHeadWrapperForJsp()
public void setLegacyVRChainHeadWrapperForJsp(VariableResolverChainWrapper legacyVRChainHeadWrapper)
public VariableResolverChainWrapper getLegacyVRChainHeadWrapperForFaces()
public void setLegacyVRChainHeadWrapperForFaces(VariableResolverChainWrapper legacyVRChainHeadWrapperForFaces)
public void setLegacyPRChainHead(PropertyResolver resolver)
ConfigureListener
and will contain any
PropertyResolvers
defined within faces-config configuration files.resolver
- PropertyResolverpublic PropertyResolver getLegacyPRChainHead()
public FacesCompositeELResolver getFacesELResolverForJsp()
public FlowHandler getFlowHandler()
public void setFlowHandler(FlowHandler flowHandler)
public SearchExpressionHandler getSearchExpressionHandler()
public void setSearchExpressionHandler(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(PropertyResolver resolver)
resolver
- PropertyResolverpublic PropertyResolver getLegacyPropertyResolver()
public void setLegacyVariableResolver(VariableResolver resolver)
resolver
- VariableResolverpublic 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 namespace)
public void addNavigationCase(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<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(FacesContext context, String var)
public void addResourceBundle(String var, ApplicationResourceBundle bundle)
values: ResourceBundleBean instances.
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(FacesContext ctx, Compiler compiler, WebConfiguration webConfig)
protected Compiler createCompiler(Map<String,Object> appMap, WebConfiguration webConfig)
protected void addTagLibraries(Compiler newCompiler)
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.