|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FacesWebApplicationContext
Provides configuration for managed beans. Typically managed beans implement the business logic related to the frontend integration.
Implementations should take configuration from faces and spring configuration
XML documents.
More precisely config files must be
compatible with the following DTD's or schemas:
By default, the configuration will be taken from "/WEB-INF/faces-config.xml" (JSF-configuration) and from "/WEB-INF/faces-spring-context.xml" (bean definitions in a common spring configuration XML document) for the faces root context, if the files exist. Furthermore configuration will be taken from "/META-INF/faces-config.xml" and from "/META-INF/faces-spring-context.xml" of any deployed jar in the classpath.
The config location defaults can be overridden via the
"javax.faces.CONFIG_FILES" context param and also the
"faces.spring.CONTEXT_FILES" context param of
ContextLoader
for configuration
files based on the spring beans DTD or schema respectively. Config locations
for configuration files based on the spring beans DTD/schema can either
denote concrete files like "/WEB-INF/context.xml" or Ant-style patterns like
"/WEB-INF/*-context.xml" (see PathMatcher javadoc for pattern details).
Field Summary | |
---|---|
static java.lang.String |
ROOT_FACES_WEB_APPLICATION_CONTEXT_ATTRIBUTE
Context attribute to bind faces root WebApplicationContext to on successful startup. |
static java.lang.String |
SCOPE_APPLICATION
Scope identifier for application scope: "application". |
static java.lang.String |
SCOPE_NONE
Scope identifier for none scope: "none". |
Fields inherited from interface org.springframework.web.context.ConfigurableWebApplicationContext |
---|
CONFIG_LOCATION_DELIMITERS |
Fields inherited from interface org.springframework.web.context.WebApplicationContext |
---|
ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_GLOBAL_SESSION, SCOPE_REQUEST, SCOPE_SESSION |
Fields inherited from interface org.springframework.beans.factory.BeanFactory |
---|
FACTORY_BEAN_PREFIX |
Fields inherited from interface org.springframework.beans.factory.BeanFactory |
---|
FACTORY_BEAN_PREFIX |
Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver |
---|
CLASSPATH_ALL_URL_PREFIX |
Fields inherited from interface org.springframework.core.io.ResourceLoader |
---|
CLASSPATH_URL_PREFIX |
Fields inherited from interface org.springframework.beans.factory.BeanFactory |
---|
FACTORY_BEAN_PREFIX |
Fields inherited from interface org.springframework.beans.factory.BeanFactory |
---|
FACTORY_BEAN_PREFIX |
Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver |
---|
CLASSPATH_ALL_URL_PREFIX |
Fields inherited from interface org.springframework.core.io.ResourceLoader |
---|
CLASSPATH_URL_PREFIX |
Method Summary | |
---|---|
void |
setFacesSpringConfigLocations(java.lang.String[] locations)
Sets the config locations. |
Methods inherited from interface org.springframework.web.context.ConfigurableWebApplicationContext |
---|
setConfigLocations, setNamespace, setServletConfig, setServletContext |
Methods inherited from interface org.springframework.web.context.WebApplicationContext |
---|
getServletContext |
Methods inherited from interface org.springframework.context.ApplicationContext |
---|
getAutowireCapableBeanFactory, getDisplayName, getParent, getStartupDate |
Methods inherited from interface org.springframework.beans.factory.ListableBeanFactory |
---|
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType |
Methods inherited from interface org.springframework.beans.factory.BeanFactory |
---|
containsBean, getAliases, getBean, getBean, getType, isSingleton |
Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory |
---|
containsLocalBean, getParentBeanFactory |
Methods inherited from interface org.springframework.beans.factory.BeanFactory |
---|
containsBean, getAliases, getBean, getBean, getType, isSingleton |
Methods inherited from interface org.springframework.context.MessageSource |
---|
getMessage, getMessage, getMessage |
Methods inherited from interface org.springframework.context.ApplicationEventPublisher |
---|
publishEvent |
Methods inherited from interface org.springframework.core.io.support.ResourcePatternResolver |
---|
getResources |
Methods inherited from interface org.springframework.core.io.ResourceLoader |
---|
getClassLoader, getResource |
Methods inherited from interface org.springframework.context.ConfigurableApplicationContext |
---|
addBeanFactoryPostProcessor, close, getBeanFactory, isActive, refresh, registerShutdownHook, setParent |
Methods inherited from interface org.springframework.context.ApplicationContext |
---|
getAutowireCapableBeanFactory, getDisplayName, getParent, getStartupDate |
Methods inherited from interface org.springframework.beans.factory.ListableBeanFactory |
---|
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType |
Methods inherited from interface org.springframework.beans.factory.BeanFactory |
---|
containsBean, getAliases, getBean, getBean, getType, isSingleton |
Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory |
---|
containsLocalBean, getParentBeanFactory |
Methods inherited from interface org.springframework.beans.factory.BeanFactory |
---|
containsBean, getAliases, getBean, getBean, getType, isSingleton |
Methods inherited from interface org.springframework.context.MessageSource |
---|
getMessage, getMessage, getMessage |
Methods inherited from interface org.springframework.context.ApplicationEventPublisher |
---|
publishEvent |
Methods inherited from interface org.springframework.core.io.support.ResourcePatternResolver |
---|
getResources |
Methods inherited from interface org.springframework.core.io.ResourceLoader |
---|
getClassLoader, getResource |
Methods inherited from interface org.springframework.context.Lifecycle |
---|
isRunning, start, stop |
Field Detail |
---|
static final java.lang.String ROOT_FACES_WEB_APPLICATION_CONTEXT_ATTRIBUTE
Note: If the startup of the root context fails, this attribute can
contain an exception or error as value. Use
FacesWebApplicationContextUtils
for convenient lookup of the root
WebApplicationContext.
static final java.lang.String SCOPE_APPLICATION
static final java.lang.String SCOPE_NONE
Method Detail |
---|
void setFacesSpringConfigLocations(java.lang.String[] locations)
locations
- the config locations
|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |