public class AnnotationApplicationContext
extends org.brandao.brutos.AbstractApplicationContext
Para que a configuração seja carregada em uma aplicação web, é necessária a
utilização das tags <context:annotation-config/> e
<context:component-scan/> no arquivo de
configuração brutos-config.xml
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| Constructor and Description |
|---|
AnnotationApplicationContext()
Cria uma nova aplicação.
|
AnnotationApplicationContext(Class<?>[] clazz)
Cria uma nova aplicação especificando os componentes.
|
AnnotationApplicationContext(Class<?>[] clazz,
org.brandao.brutos.ApplicationContext parent)
Cria uma nova aplicação especificando os componentes e uma aplicação
parente.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
loadDefinitions(org.brandao.brutos.ComponentRegistry registry) |
void |
setConfigClass(List<Class<?>> clazz)
Define as classes de configuração da aplicação.
|
destroy, flush, getActionParameterName, getActionResolver, getActionType, getBean, getBean, getCodeGenerator, getConfiguration, getController, getControllerManager, getControllerResolver, getDispatcherType, getEnumerationType, getFetchType, getInitActionParameterName, getInitActionType, getInitAutomaticExceptionMapping, getInitAutomaticPropertyMapping, getInitAutomaticViewResolver, getInitDispatcherType, getInitEnumerationType, getInitFetchType, getInitRequestParser, getInitRequestType, getInitResponseType, getInitScopeType, 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, initInstances, initInvoker, initLogger, initScopes, initTypes, isAutomaticExceptionMapping, isAutomaticPropertyMapping, isAutomaticViewResolver, isStandardType, setActionParameterName, setActionType, setAutomaticExceptionMapping, setAutomaticPropertyMapping, setAutomaticViewResolver, setCodeGenerator, setConfiguration, setControllerResolver, setDispatcherType, setEnumerationType, setFetchType, setInterceptorManager, setInvoker, setObjectFactory, setParent, setRenderView, setRequestParser, setRequestType, setResponseType, setScopeType, setSeparator, setTemporalProperty, setViewIndex, setViewPrefix, setViewResolver, setViewSuffixpublic AnnotationApplicationContext()
public AnnotationApplicationContext(Class<?>[] clazz) throws IllegalArgumentException
clazz - Componentes da aplicação.IllegalArgumentException - Lançada se na lista conter classes de configuração.public AnnotationApplicationContext(Class<?>[] clazz, org.brandao.brutos.ApplicationContext parent) throws IllegalArgumentException
clazz - Componentes da aplicação.parent - Aplicação parente.IllegalArgumentException - Lançada se na lista conter classes de configuração.public void setConfigClass(List<Class<?>> clazz) throws IllegalStateException, IllegalArgumentException
clazz - Classes de configuração.IllegalArgumentException - Lançada se na lista conter classes que não possuem
configuração.IllegalStateException - Lançada se as classes da aplicação já tenham sido informadas.protected void loadDefinitions(org.brandao.brutos.ComponentRegistry registry)
loadDefinitions in class org.brandao.brutos.AbstractApplicationContextCopyright © 2018 Brandao. All rights reserved.