public class SurfWebApplicationContext
extends org.springframework.web.context.support.XmlWebApplicationContext
implements org.springframework.web.context.ConfigurableWebApplicationContext, javax.servlet.ServletContextListener
DEFAULT_CONFIG_LOCATION, DEFAULT_CONFIG_LOCATION_PREFIX, DEFAULT_CONFIG_LOCATION_SUFFIXAPPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, MESSAGE_SOURCE_BEAN_NAMEAPPLICATION_CONTEXT_ID_PREFIX, SERVLET_CONFIG_BEAN_NAMECONTEXT_ATTRIBUTES_BEAN_NAME, CONTEXT_PARAMETERS_BEAN_NAME, ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_APPLICATION, SCOPE_GLOBAL_SESSION, SCOPE_REQUEST, SCOPE_SESSION, SERVLET_CONTEXT_BEAN_NAMECONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME| Constructor and Description |
|---|
SurfWebApplicationContext()
Constructs a new Surf web application context
|
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event) |
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
org.springframework.core.io.Resource |
getResource(String location)
ResourceLoader
Retrieves a resource at a given location
If the resource is not a classpath resource, then the search
path is consulted.
|
protected org.springframework.core.io.Resource |
getResourceByPath(String path)
This implementation supports file paths beneath the root of the ServletContext.
|
protected org.springframework.core.io.Resource |
getResourceFromSearchPath(String location)
Retrieves the resource with the given location string from
the current search path.
|
org.springframework.core.io.Resource[] |
getResources(String locationPattern)
ResourcePatternResolver
Resolve the given location pattern into Resource objects.
|
protected org.springframework.extensions.webscripts.SearchPath |
getSearchPath()
Returns the search path object
|
protected void |
onRefresh() |
getDefaultConfigLocations, initBeanDefinitionReader, loadBeanDefinitions, loadBeanDefinitionscreateEnvironment, getApplicationName, getConfigLocations, getNamespace, getResourcePatternResolver, getServletConfig, getServletContext, getTheme, initPropertySources, postProcessBeanFactory, setNamespace, setServletConfig, setServletContextafterPropertiesSet, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setIdcancelRefresh, closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferencesaddApplicationListener, addBeanFactoryPostProcessor, addListener, close, containsBean, containsBeanDefinition, containsLocalBean, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, prepareBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setEnvironment, setParent, start, stop, toStringgetClassLoader, setClassLoaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConfigLocations, getNamespace, getServletConfig, setConfigLocation, setConfigLocations, setNamespace, setServletConfig, setServletContextgetServletContextaddApplicationListener, addBeanFactoryPostProcessor, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParentgetApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDatecontainsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotationcontainsLocalBean, getParentBeanFactorycontainsBean, getAliases, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatchpublic SurfWebApplicationContext()
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed in interface javax.servlet.ServletContextListenerprotected org.springframework.extensions.webscripts.SearchPath getSearchPath()
protected void onRefresh()
onRefresh in class org.springframework.web.context.support.AbstractRefreshableWebApplicationContextpublic org.springframework.core.io.Resource getResource(String location)
getResource in interface org.springframework.core.io.ResourceLoadergetResource in class org.springframework.core.io.DefaultResourceLoaderprotected org.springframework.core.io.Resource getResourceByPath(String path)
getResourceByPath in class org.springframework.web.context.support.AbstractRefreshableWebApplicationContextServletContextResourcepublic org.springframework.core.io.Resource[] getResources(String locationPattern) throws IOException
getResources in interface org.springframework.core.io.support.ResourcePatternResolvergetResources in class org.springframework.context.support.AbstractApplicationContextlocationPattern - the location pattern to resolveIOException - in case of I/O errorsprotected org.springframework.core.io.Resource getResourceFromSearchPath(String location)
location - the locationCopyright © 2005–2016 Alfresco Software. All rights reserved.