public abstract class AbstractApplicationContext extends DefaultResourceLoader implements ConfigurableApplicationContext
CLASSPATH_URL_PREFIX, FILE_URL_PREFIX
Constructor and Description |
---|
AbstractApplicationContext() |
AbstractApplicationContext(ApplicationContext parent) |
getClassloader, getContextResource, getResource
protected Logger logger
protected ObjectFactory objectFactory
protected InterceptorManager interceptorManager
protected ControllerManager controllerManager
protected ConfigurableRenderView renderView
protected Invoker invoker
protected Properties configuration
protected LoggerProvider loggerProvider
protected ControllerResolver controllerResolver
protected ActionResolver actionResolver
protected MvcResponseFactory responseFactory
protected MvcRequestFactory requestFactory
protected Scopes scopes
protected CodeGenerator codeGenerator
protected TypeManager typeManager
protected RequestParserListenerFactory requestParserListenerFactory
protected ConfigurableRequestParser requestParser
protected DispatcherType dispatcherType
protected boolean automaticViewResolver
protected boolean automaticExceptionMapping
protected boolean automaticPropertyMapping
protected EnumerationType enumerationType
protected ScopeType scopeType
protected String temporalProperty
protected String actionParameterName
protected ActionType actionType
protected FetchType fetchType
public AbstractApplicationContext()
public AbstractApplicationContext(ApplicationContext parent)
protected void initInstances()
protected void initInvoker()
protected void initTypes()
protected void initScopes()
protected void initComponents()
protected void initLogger()
protected abstract void loadDefinitions(ComponentRegistry registry)
protected ControllerResolver getNewControllerResolver()
protected MvcResponseFactory getMvcResponseFactory()
protected MvcRequestFactory getMvcRequestFactory()
protected ActionResolver getNewMethodResolver()
protected ControllerManager getNewControllerManager()
protected InterceptorManager getNewInterceptorManager()
protected ObjectFactory getNewObjectFactory()
protected ValidatorFactory getNewValidatorFactory()
protected CodeGenerator getNewCodeGenerator()
protected ConfigurableRenderView getNewRenderView()
protected Invoker getNewInvoker()
protected ConfigurableViewResolver getNewViewResolver()
protected TypeManager getNewTypeManager()
protected RequestParserListenerFactory getRequestParserListenerFactory()
protected ConfigurableRequestParser getInitRequestParser()
protected DataType getInitRequestType()
protected DataType getInitResponseType()
protected DispatcherType getInitDispatcherType()
protected boolean getInitAutomaticViewResolver()
protected boolean getInitAutomaticExceptionMapping()
protected boolean getInitAutomaticPropertyMapping()
protected EnumerationType getInitEnumerationType()
protected ScopeType getInitScopeType()
protected String getInitTemporalProperty()
protected String getInitViewPrefix()
protected String getInitViewSuffix()
protected String getInitViewIndex()
protected String getInitSeparator()
protected String getInitActionParameterName()
protected ActionType getInitActionType()
protected FetchType getInitFetchType()
public void destroy()
destroy
in interface ConfigurableApplicationContext
public void setActionParameterName(String name)
setActionParameterName
in interface ConfigurableApplicationContext
public String getActionParameterName()
getActionParameterName
in interface ApplicationContext
public void setActionType(ActionType value)
setActionType
in interface ConfigurableApplicationContext
public ActionType getActionType()
getActionType
in interface ApplicationContext
public String getViewPrefix()
getViewPrefix
in interface ApplicationContext
public void setViewPrefix(String value)
setViewPrefix
in interface ConfigurableApplicationContext
public String getViewSuffix()
getViewSuffix
in interface ApplicationContext
public void setViewSuffix(String value)
setViewSuffix
in interface ConfigurableApplicationContext
public String getViewIndex()
getViewIndex
in interface ApplicationContext
public void setViewIndex(String value)
setViewIndex
in interface ConfigurableApplicationContext
public String getSeparator()
getSeparator
in interface ApplicationContext
public void setSeparator(String value)
setSeparator
in interface ConfigurableApplicationContext
public void setAutomaticViewResolver(boolean value)
setAutomaticViewResolver
in interface ConfigurableApplicationContext
public void setAutomaticPropertyMapping(boolean value)
setAutomaticPropertyMapping
in interface ConfigurableApplicationContext
public void setAutomaticExceptionMapping(boolean value)
setAutomaticExceptionMapping
in interface ConfigurableApplicationContext
public void setTemporalProperty(String value)
setTemporalProperty
in interface ConfigurableApplicationContext
public boolean isAutomaticPropertyMapping()
isAutomaticPropertyMapping
in interface ApplicationContext
public boolean isAutomaticViewResolver()
isAutomaticViewResolver
in interface ApplicationContext
public boolean isAutomaticExceptionMapping()
isAutomaticExceptionMapping
in interface ApplicationContext
public String getTemporalProperty()
getTemporalProperty
in interface ApplicationContext
public void setScopeType(ScopeType value)
setScopeType
in interface ConfigurableApplicationContext
public ScopeType getScopeType()
getScopeType
in interface ApplicationContext
public void setEnumerationType(EnumerationType value)
setEnumerationType
in interface ConfigurableApplicationContext
public EnumerationType getEnumerationType()
getEnumerationType
in interface ApplicationContext
public void setDispatcherType(DispatcherType value)
setDispatcherType
in interface ConfigurableApplicationContext
public DispatcherType getDispatcherType()
getDispatcherType
in interface ApplicationContext
public void setRequestType(DataType value)
setRequestType
in interface ConfigurableApplicationContext
public DataType getRequestType()
getRequestType
in interface ApplicationContext
public void setResponseType(DataType value)
setResponseType
in interface ConfigurableApplicationContext
public DataType getResponseType()
getResponseType
in interface ApplicationContext
public Properties getConfiguration()
getConfiguration
in interface ApplicationContext
public LoggerProvider getLoggerProvider()
getLoggerProvider
in interface ApplicationContext
public MvcResponse getMvcResponse()
getMvcResponse
in interface ApplicationContext
public MvcRequest getMvcRequest()
getMvcRequest
in interface ApplicationContext
public Scopes getScopes()
getScopes
in interface ApplicationContext
public MvcRequestFactory getRequestFactory()
getRequestFactory
in interface ConfigurableApplicationContext
public MvcResponseFactory getResponseFactory()
getResponseFactory
in interface ConfigurableApplicationContext
protected void setControllerResolver(ControllerResolver controllerResolver)
public void setInterceptorManager(InterceptorManager interceptorManager)
setInterceptorManager
in interface ConfigurableApplicationContext
public void setRenderView(ConfigurableRenderView renderView)
setRenderView
in interface ConfigurableApplicationContext
public RenderView getRenderView()
getRenderView
in interface ApplicationContext
public ValidatorFactory getValidatorFactory()
getValidatorFactory
in interface ApplicationContext
public Invoker getInvoker()
getInvoker
in interface ApplicationContext
public void setInvoker(Invoker value)
setInvoker
in interface ConfigurableApplicationContext
public void setConfiguration(Properties config)
setConfiguration
in interface ConfigurableApplicationContext
public void setObjectFactory(ObjectFactory objectFactory)
setObjectFactory
in interface ConfigurableApplicationContext
public InterceptorManager getInterceptorManager()
getInterceptorManager
in interface ApplicationContext
public FetchType getFetchType()
getFetchType
in interface ApplicationContext
public ControllerManager getControllerManager()
getControllerManager
in interface ApplicationContext
public ObjectFactory getObjectFactory()
getObjectFactory
in interface ApplicationContext
public ControllerResolver getControllerResolver()
getControllerResolver
in interface ApplicationContext
public ActionResolver getActionResolver()
getActionResolver
in interface ApplicationContext
public CodeGenerator getCodeGenerator()
getCodeGenerator
in interface ApplicationContext
public void setCodeGenerator(CodeGenerator codeGenerator)
setCodeGenerator
in interface ConfigurableApplicationContext
public void setFetchType(FetchType value)
setFetchType
in interface ConfigurableApplicationContext
public ViewResolver getViewResolver()
getViewResolver
in interface ApplicationContext
public void setViewResolver(ConfigurableViewResolver viewResolver)
setViewResolver
in interface ConfigurableApplicationContext
public void setRequestParser(ConfigurableRequestParser value)
setRequestParser
in interface ConfigurableApplicationContext
public RequestParser getRequestParser()
getRequestParser
in interface ApplicationContext
public Object getController(Class<?> clazz)
getController
in interface ApplicationContext
public void setParent(ApplicationContext applicationContext)
setParent
in interface ConfigurableApplicationContext
public ApplicationContext getParent()
getParent
in interface ApplicationContext
public Object getBean(Class<?> clazz)
getBean
in interface ApplicationContext
public Object getBean(String name)
getBean
in interface ApplicationContext
public TypeManager getTypeManager()
getTypeManager
in interface ApplicationContext
public boolean isStandardType(Class<?> clazz)
public void flush()
flush
in interface ConfigurableApplicationContext
Copyright © 2018 Brandao. All rights reserved.