public abstract class AbstractWebApplicationContext extends AbstractApplicationContext implements ConfigurableWebApplicationContext
Modifier and Type | Field and Description |
---|---|
protected String[] |
locations |
protected RequestMethodType |
requestMethodType |
protected Resource[] |
resources |
protected int |
responseError |
protected int |
responseStatus |
protected javax.servlet.ServletContext |
servletContext |
actionParameterName, actionResolver, actionType, automaticExceptionMapping, automaticPropertyMapping, automaticViewResolver, codeGenerator, configuration, controllerManager, controllerResolver, dispatcherType, enumerationType, fetchType, interceptorManager, invoker, logger, loggerProvider, objectFactory, renderView, requestFactory, requestParser, requestParserListenerFactory, responseFactory, scopes, scopeType, temporalProperty, typeManager
contextConfigName, defaultConfigContext
CLASSPATH_URL_PREFIX, FILE_URL_PREFIX
Constructor and Description |
---|
AbstractWebApplicationContext() |
AbstractWebApplicationContext(ApplicationContext parent) |
getActionResolver, getActionType, getBean, getBean, getCodeGenerator, getConfiguration, getController, getControllerManager, getControllerResolver, getDispatcherType, getEnumerationType, getFetchType, getInitActionParameterName, getInitAutomaticExceptionMapping, getInitAutomaticPropertyMapping, getInitAutomaticViewResolver, getInitDispatcherType, getInitEnumerationType, getInitFetchType, getInitRequestParser, getInitSeparator, getInitTemporalProperty, getInitViewIndex, getInitViewPrefix, getInitViewSuffix, getInterceptorManager, getInvoker, getLoggerProvider, getMvcRequest, getMvcRequestFactory, getMvcResponse, getMvcResponseFactory, getNewCodeGenerator, getNewControllerManager, getNewControllerResolver, getNewInterceptorManager, getNewInvoker, getNewMethodResolver, getNewObjectFactory, getNewRenderView, getNewTypeManager, getNewValidatorFactory, getNewViewResolver, getObjectFactory, getParent, getRenderView, getRequestFactory, getRequestParser, getRequestParserListenerFactory, getRequestType, getResponseFactory, getResponseType, getScopes, getScopeType, getSeparator, getTemporalProperty, getTypeManager, getValidatorFactory, getViewIndex, getViewPrefix, getViewResolver, getViewSuffix, initComponents, initInvoker, initLogger, isAutomaticExceptionMapping, isAutomaticPropertyMapping, isAutomaticViewResolver, isStandardType, loadDefinitions, setActionType, setAutomaticExceptionMapping, setAutomaticPropertyMapping, setAutomaticViewResolver, setCodeGenerator, setConfiguration, setControllerResolver, setDispatcherType, setEnumerationType, setFetchType, setInterceptorManager, setInvoker, setObjectFactory, setParent, setRenderView, setRequestParser, setRequestType, setResponseType, setScopeType, setSeparator, setTemporalProperty, setViewIndex, setViewPrefix, setViewResolver, setViewSuffix
getClassloader, getResource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequestFactory, getResponseFactory, setActionType, setAutomaticExceptionMapping, setAutomaticPropertyMapping, setAutomaticViewResolver, setCodeGenerator, setConfiguration, setDispatcherType, setEnumerationType, setFetchType, setInterceptorManager, setInvoker, setObjectFactory, setParent, setRenderView, setRequestParser, setRequestType, setResponseType, setScopeType, setSeparator, setTemporalProperty, setViewIndex, setViewPrefix, setViewResolver, setViewSuffix
getActionResolver, getActionType, getBean, getBean, getCodeGenerator, getConfiguration, getController, getControllerManager, getControllerResolver, getDispatcherType, getEnumerationType, getFetchType, getInterceptorManager, getInvoker, getLoggerProvider, getMvcRequest, getMvcResponse, getObjectFactory, getParent, getRenderView, getRequestParser, getRequestType, getResponseType, getScopes, getScopeType, getSeparator, getTemporalProperty, getTypeManager, getValidatorFactory, getViewIndex, getViewPrefix, getViewResolver, getViewSuffix, isAutomaticExceptionMapping, isAutomaticPropertyMapping, isAutomaticViewResolver
isStandardType
getClassloader, getResource
protected javax.servlet.ServletContext servletContext
protected RequestMethodType requestMethodType
protected int responseStatus
protected int responseError
protected String[] locations
protected Resource[] resources
public AbstractWebApplicationContext()
public AbstractWebApplicationContext(ApplicationContext parent)
public void setLocations(String[] locations)
setLocations
in interface ConfigurableWebApplicationContext
public void setResources(Resource[] resources)
setResources
in interface ConfigurableWebApplicationContext
public String[] getLocations()
getLocations
in interface ConfigurableWebApplicationContext
public Resource[] getResources()
getResources
in interface ConfigurableWebApplicationContext
public RequestMethodType getRequestMethod()
getRequestMethod
in interface WebApplicationContext
public void setRequestMethod(RequestMethodType value)
setRequestMethod
in interface ConfigurableWebApplicationContext
public void setResponseStatus(int value)
setResponseStatus
in interface ConfigurableWebApplicationContext
public int getResponseStatus()
getResponseStatus
in interface WebApplicationContext
public void setResponseError(int value)
setResponseError
in interface ConfigurableWebApplicationContext
public int getResponseError()
getResponseError
in interface WebApplicationContext
protected void initInstances()
initInstances
in class AbstractApplicationContext
protected void initTypes()
initTypes
in class AbstractApplicationContext
protected void initScopes()
initScopes
in class AbstractApplicationContext
protected void overrideConfig()
protected RequestMethodType getInitRequestMethodType()
protected int getInitResponseStatus()
protected int getInitResponseError()
protected DataType getInitRequestType()
getInitRequestType
in class AbstractApplicationContext
protected DataType getInitResponseType()
getInitResponseType
in class AbstractApplicationContext
protected ScopeType getInitScopeType()
getInitScopeType
in class AbstractApplicationContext
protected ActionType getInitActionType()
getInitActionType
in class AbstractApplicationContext
public void setActionParameterName(String name)
setActionParameterName
in interface ConfigurableApplicationContext
setActionParameterName
in class AbstractApplicationContext
public String getActionParameterName()
getActionParameterName
in interface ApplicationContext
getActionParameterName
in class AbstractApplicationContext
public javax.servlet.ServletContext getContext()
getContext
in interface WebApplicationContext
protected Resource getContextResource(String path)
getContextResource
in class DefaultResourceLoader
public void destroy()
destroy
in interface ConfigurableApplicationContext
destroy
in class AbstractApplicationContext
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface ConfigurableWebApplicationContext
public ControllerBuilder registerController(Class<?> classtype)
registerController
in interface ControllerRegistry
public ControllerBuilder registerController(String id, Class<?> classType)
registerController
in interface ControllerRegistry
public ControllerBuilder registerController(String id, String view, boolean resolvedView, Class<?> classType)
registerController
in interface ControllerRegistry
public ControllerBuilder registerController(String id, String view, boolean resolvedView, String name, Class<?> classType, String actionId)
registerController
in interface ControllerRegistry
public ControllerBuilder registerController(String id, String view, boolean resolvedView, DispatcherType dispatcherType, String name, Class<?> classType, String actionId)
registerController
in interface ControllerRegistry
public ControllerBuilder registerController(String id, String view, boolean resolvedView, DispatcherType dispatcherType, String name, Class<?> classType, String actionId, ActionType actionType)
registerController
in interface ControllerRegistry
public ControllerBuilder registerController(String id, String view, DispatcherType dispatcherType, boolean resolvedView, String name, Class<?> classType, String actionId, ActionType actionType)
registerController
in interface ControllerRegistry
public Controller getRegisteredController(Class<?> clazz)
getRegisteredController
in interface ControllerRegistry
public Controller getRegisteredController(String name)
getRegisteredController
in interface ControllerRegistry
public ControllerBuilder registerController(String id, RequestMethodType requestType, String view, boolean resolvedView, DispatcherType dispatcherType, String name, Class<?> classType, String actionId, ActionType actionType)
registerController
in interface WebControllerRegistry
public InterceptorStackBuilder registerInterceptorStack(String name, boolean isDefault)
registerInterceptorStack
in interface InterceptorRegistry
public InterceptorBuilder registerInterceptor(String name, Class<?> interceptor, boolean isDefault)
registerInterceptor
in interface InterceptorRegistry
public Interceptor getRegisteredInterceptor(Class<?> clazz)
getRegisteredInterceptor
in interface InterceptorRegistry
public Interceptor getRegisteredInterceptor(String name)
getRegisteredInterceptor
in interface InterceptorRegistry
public void registerScope(String name, Scope scope)
registerScope
in interface ScopeRegistry
public Scope getRegistredScope(String name)
getRegistredScope
in interface ScopeRegistry
public Scope getRegistredScope(ScopeType scopeType)
getRegistredScope
in interface ScopeRegistry
public void registerType(TypeFactory factory)
registerType
in interface TypeRegistry
public void registerType(Class<?> classType, Class<?> type)
registerType
in interface TypeRegistry
public TypeFactory getRegistredType(Class<?> classType)
getRegistredType
in interface TypeRegistry
public void registerProperty(String name, String value)
registerProperty
in interface PropertyRegistry
public String getProperty(String name)
getProperty
in interface PropertyRegistry
public Properties getProperties()
getProperties
in interface PropertyRegistry
public void flush()
flush
in interface ConfigurableApplicationContext
flush
in class AbstractApplicationContext
Copyright © 2018 Brandao. All rights reserved.