public class WebApplicationContextWrapper extends AbstractWebApplicationContext
Modifier and Type | Field and Description |
---|---|
protected ConfigurableWebApplicationContext |
applicationContext |
locations, requestMethodType, resources, responseError, responseStatus, 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 |
---|
WebApplicationContextWrapper(ConfigurableWebApplicationContext app) |
getActionParameterName, getContextResource, getInitActionType, getInitRequestMethodType, getInitRequestType, getInitResponseError, getInitResponseStatus, getInitResponseType, getInitScopeType, getRequestMethod, getResponseError, getResponseStatus, initInstances, initScopes, initTypes, overrideConfig, registerController, setActionParameterName, setRequestMethod, setResponseError, setResponseStatus
getActionType, getDispatcherType, getEnumerationType, getFetchType, getInitActionParameterName, getInitAutomaticExceptionMapping, getInitAutomaticPropertyMapping, getInitAutomaticViewResolver, getInitDispatcherType, getInitEnumerationType, getInitFetchType, getInitRequestParser, getInitSeparator, getInitTemporalProperty, getInitViewIndex, getInitViewPrefix, getInitViewSuffix, getMvcRequestFactory, getMvcResponseFactory, getNewCodeGenerator, getNewControllerManager, getNewControllerResolver, getNewInterceptorManager, getNewInvoker, getNewMethodResolver, getNewObjectFactory, getNewRenderView, getNewTypeManager, getNewValidatorFactory, getNewViewResolver, getRequestParserListenerFactory, getRequestType, getResponseType, getScopeType, getSeparator, getTemporalProperty, getViewIndex, getViewPrefix, getViewSuffix, initComponents, initInvoker, initLogger, isAutomaticExceptionMapping, isAutomaticPropertyMapping, isAutomaticViewResolver, setActionType, setAutomaticExceptionMapping, setAutomaticPropertyMapping, setAutomaticViewResolver, setControllerResolver, setDispatcherType, setEnumerationType, setFetchType, setRequestType, setResponseType, setScopeType, setSeparator, setTemporalProperty, setViewIndex, setViewPrefix, setViewSuffix
getClassloader, getResource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setActionType, setAutomaticExceptionMapping, setAutomaticPropertyMapping, setAutomaticViewResolver, setDispatcherType, setEnumerationType, setFetchType, setRequestType, setResponseType, setScopeType, setSeparator, setTemporalProperty, setViewIndex, setViewPrefix, setViewSuffix
getActionType, getDispatcherType, getEnumerationType, getFetchType, getRequestType, getResponseType, getScopeType, getSeparator, getTemporalProperty, getViewIndex, getViewPrefix, getViewSuffix, isAutomaticExceptionMapping, isAutomaticPropertyMapping, isAutomaticViewResolver
getClassloader, getResource
protected ConfigurableWebApplicationContext applicationContext
public WebApplicationContextWrapper(ConfigurableWebApplicationContext app)
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface ConfigurableWebApplicationContext
setServletContext
in class AbstractWebApplicationContext
public void setLocations(String[] locations)
setLocations
in interface ConfigurableWebApplicationContext
setLocations
in class AbstractWebApplicationContext
public void setResources(Resource[] resources)
setResources
in interface ConfigurableWebApplicationContext
setResources
in class AbstractWebApplicationContext
public String[] getLocations()
getLocations
in interface ConfigurableWebApplicationContext
getLocations
in class AbstractWebApplicationContext
public Resource[] getResources()
getResources
in interface ConfigurableWebApplicationContext
getResources
in class AbstractWebApplicationContext
public javax.servlet.ServletContext getContext()
getContext
in interface WebApplicationContext
getContext
in class AbstractWebApplicationContext
public void destroy()
destroy
in interface ConfigurableApplicationContext
destroy
in class AbstractWebApplicationContext
public ControllerBuilder registerController(Class<?> classtype)
registerController
in interface ControllerRegistry
registerController
in class AbstractWebApplicationContext
public ControllerBuilder registerController(String id, Class<?> classType)
registerController
in interface ControllerRegistry
registerController
in class AbstractWebApplicationContext
public ControllerBuilder registerController(String id, String view, boolean resolvedView, Class<?> classType)
registerController
in interface ControllerRegistry
registerController
in class AbstractWebApplicationContext
public ControllerBuilder registerController(String id, String view, boolean resolvedView, String name, Class<?> classType, String actionId)
registerController
in interface ControllerRegistry
registerController
in class AbstractWebApplicationContext
public ControllerBuilder registerController(String id, String view, boolean resolvedView, DispatcherType dispatcherType, String name, Class<?> classType, String actionId)
registerController
in interface ControllerRegistry
registerController
in class AbstractWebApplicationContext
public ControllerBuilder registerController(String id, String view, boolean resolvedView, DispatcherType dispatcherType, String name, Class<?> classType, String actionId, ActionType actionType)
registerController
in interface ControllerRegistry
registerController
in class AbstractWebApplicationContext
public ControllerBuilder registerController(String id, String view, DispatcherType dispatcherType, boolean resolvedView, String name, Class<?> classType, String actionId, ActionType actionType)
registerController
in interface ControllerRegistry
registerController
in class AbstractWebApplicationContext
public Controller getRegisteredController(Class<?> clazz)
getRegisteredController
in interface ControllerRegistry
getRegisteredController
in class AbstractWebApplicationContext
public Controller getRegisteredController(String name)
getRegisteredController
in interface ControllerRegistry
getRegisteredController
in class AbstractWebApplicationContext
public InterceptorStackBuilder registerInterceptorStack(String name, boolean isDefault)
registerInterceptorStack
in interface InterceptorRegistry
registerInterceptorStack
in class AbstractWebApplicationContext
public InterceptorBuilder registerInterceptor(String name, Class<?> interceptor, boolean isDefault)
registerInterceptor
in interface InterceptorRegistry
registerInterceptor
in class AbstractWebApplicationContext
public Interceptor getRegisteredInterceptor(Class<?> clazz)
getRegisteredInterceptor
in interface InterceptorRegistry
getRegisteredInterceptor
in class AbstractWebApplicationContext
public Interceptor getRegisteredInterceptor(String name)
getRegisteredInterceptor
in interface InterceptorRegistry
getRegisteredInterceptor
in class AbstractWebApplicationContext
public void registerScope(String name, Scope scope)
registerScope
in interface ScopeRegistry
registerScope
in class AbstractWebApplicationContext
public Scope getRegistredScope(String name)
getRegistredScope
in interface ScopeRegistry
getRegistredScope
in class AbstractWebApplicationContext
public Scope getRegistredScope(ScopeType scopeType)
getRegistredScope
in interface ScopeRegistry
getRegistredScope
in class AbstractWebApplicationContext
public void registerType(TypeFactory factory)
registerType
in interface TypeRegistry
registerType
in class AbstractWebApplicationContext
public void registerType(Class<?> classType, Class<?> type)
registerType
in interface TypeRegistry
registerType
in class AbstractWebApplicationContext
public TypeFactory getRegistredType(Class<?> classType)
getRegistredType
in interface TypeRegistry
getRegistredType
in class AbstractWebApplicationContext
public void registerProperty(String name, String value)
registerProperty
in interface PropertyRegistry
registerProperty
in class AbstractWebApplicationContext
public String getProperty(String name)
getProperty
in interface PropertyRegistry
getProperty
in class AbstractWebApplicationContext
public Properties getProperties()
getProperties
in interface PropertyRegistry
getProperties
in class AbstractWebApplicationContext
public void flush()
flush
in interface ConfigurableApplicationContext
flush
in class AbstractWebApplicationContext
protected void loadDefinitions(ComponentRegistry registry)
loadDefinitions
in class AbstractApplicationContext
public Properties getConfiguration()
getConfiguration
in interface ApplicationContext
getConfiguration
in class AbstractApplicationContext
public LoggerProvider getLoggerProvider()
getLoggerProvider
in interface ApplicationContext
getLoggerProvider
in class AbstractApplicationContext
public MvcResponse getMvcResponse()
getMvcResponse
in interface ApplicationContext
getMvcResponse
in class AbstractApplicationContext
public MvcRequest getMvcRequest()
getMvcRequest
in interface ApplicationContext
getMvcRequest
in class AbstractApplicationContext
public Scopes getScopes()
getScopes
in interface ApplicationContext
getScopes
in class AbstractApplicationContext
public MvcRequestFactory getRequestFactory()
getRequestFactory
in interface ConfigurableApplicationContext
getRequestFactory
in class AbstractApplicationContext
public MvcResponseFactory getResponseFactory()
getResponseFactory
in interface ConfigurableApplicationContext
getResponseFactory
in class AbstractApplicationContext
public void setInterceptorManager(InterceptorManager interceptorManager)
setInterceptorManager
in interface ConfigurableApplicationContext
setInterceptorManager
in class AbstractApplicationContext
public void setRenderView(ConfigurableRenderView renderView)
setRenderView
in interface ConfigurableApplicationContext
setRenderView
in class AbstractApplicationContext
public RenderView getRenderView()
getRenderView
in interface ApplicationContext
getRenderView
in class AbstractApplicationContext
public ValidatorFactory getValidatorFactory()
getValidatorFactory
in interface ApplicationContext
getValidatorFactory
in class AbstractApplicationContext
public Invoker getInvoker()
getInvoker
in interface ApplicationContext
getInvoker
in class AbstractApplicationContext
public void setInvoker(Invoker value)
setInvoker
in interface ConfigurableApplicationContext
setInvoker
in class AbstractApplicationContext
public void setConfiguration(Properties config)
setConfiguration
in interface ConfigurableApplicationContext
setConfiguration
in class AbstractApplicationContext
public void setObjectFactory(ObjectFactory objectFactory)
setObjectFactory
in interface ConfigurableApplicationContext
setObjectFactory
in class AbstractApplicationContext
public InterceptorManager getInterceptorManager()
getInterceptorManager
in interface ApplicationContext
getInterceptorManager
in class AbstractApplicationContext
public ControllerManager getControllerManager()
getControllerManager
in interface ApplicationContext
getControllerManager
in class AbstractApplicationContext
public ObjectFactory getObjectFactory()
getObjectFactory
in interface ApplicationContext
getObjectFactory
in class AbstractApplicationContext
public ControllerResolver getControllerResolver()
getControllerResolver
in interface ApplicationContext
getControllerResolver
in class AbstractApplicationContext
public ActionResolver getActionResolver()
getActionResolver
in interface ApplicationContext
getActionResolver
in class AbstractApplicationContext
public CodeGenerator getCodeGenerator()
getCodeGenerator
in interface ApplicationContext
getCodeGenerator
in class AbstractApplicationContext
public void setCodeGenerator(CodeGenerator codeGenerator)
setCodeGenerator
in interface ConfigurableApplicationContext
setCodeGenerator
in class AbstractApplicationContext
public ViewResolver getViewResolver()
getViewResolver
in interface ApplicationContext
getViewResolver
in class AbstractApplicationContext
public void setViewResolver(ConfigurableViewResolver viewResolver)
setViewResolver
in interface ConfigurableApplicationContext
setViewResolver
in class AbstractApplicationContext
public void setRequestParser(ConfigurableRequestParser value)
setRequestParser
in interface ConfigurableApplicationContext
setRequestParser
in class AbstractApplicationContext
public RequestParser getRequestParser()
getRequestParser
in interface ApplicationContext
getRequestParser
in class AbstractApplicationContext
public Object getController(Class<?> clazz)
getController
in interface ApplicationContext
getController
in class AbstractApplicationContext
public void setParent(ApplicationContext applicationContext)
setParent
in interface ConfigurableApplicationContext
setParent
in class AbstractApplicationContext
public ApplicationContext getParent()
getParent
in interface ApplicationContext
getParent
in class AbstractApplicationContext
public Object getBean(Class<?> clazz)
getBean
in interface ApplicationContext
getBean
in class AbstractApplicationContext
public Object getBean(String name)
getBean
in interface ApplicationContext
getBean
in class AbstractApplicationContext
public TypeManager getTypeManager()
getTypeManager
in interface ApplicationContext
getTypeManager
in class AbstractApplicationContext
public boolean isStandardType(Class<?> clazz)
isStandardType
in interface TypeRegistry
isStandardType
in class AbstractApplicationContext
Copyright © 2018 Brandao. All rights reserved.