public class DefaultContainerBuilder extends Object implements ContainerRegistryBuilder
| 限定符和类型 | 字段和说明 |
|---|---|
protected ContainerComponents |
aspectConfigComponents |
protected ContainerComponents |
basicComponents |
protected ContainerWrapper |
containerWrapper |
static String |
module |
protected boolean |
startup |
protected XmlContainerRegistry |
xmlcontainerRegistry |
APPLICATION_CONTEXT_ATTRIBUTE_NAME| 构造器和说明 |
|---|
DefaultContainerBuilder(ContainerWrapper containerWrapper,
ContainerComponents basicComponents,
ContainerComponents aspectConfigComponents)
construtor
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doAfterStarted() |
ContainerWrapper |
getContainerWrapper() |
boolean |
isKernelStartup() |
void |
registerAppRoot(String configureFileName)
if there are xml configure then add new ones; if not, register it;
|
void |
registerAspectComponents()
register all apsect components in aspect.xml
|
void |
registerComponents()
register all basic components in container.xml
|
void |
registerUserService()
register user services/components in jdonframework.xml
AnnotationContainerBuilder will override this method, and register
annotation services or components.
|
void |
setKernelStartup(boolean startup) |
void |
startApp() |
void |
stopApp() |
public static final String module
protected final ContainerComponents basicComponents
protected final ContainerComponents aspectConfigComponents
protected final XmlContainerRegistry xmlcontainerRegistry
protected final ContainerWrapper containerWrapper
protected volatile boolean startup
public DefaultContainerBuilder(ContainerWrapper containerWrapper, ContainerComponents basicComponents, ContainerComponents aspectConfigComponents)
containerWrapper - basicComponents - got from configure fileinterceptorsChain - got from configure filepublic ContainerWrapper getContainerWrapper()
getContainerWrapper 在接口中 ContainerRegistryBuilderpublic void registerAppRoot(String configureFileName) throws Exception
registerAppRoot 在接口中 ContainerRegistryBuilderconfigList - Collection the configure collection for jdonframework.xmlExceptionpublic void registerComponents()
throws Exception
registerComponents 在接口中 ContainerRegistryBuilderExceptionpublic void registerAspectComponents()
throws Exception
registerAspectComponents 在接口中 ContainerRegistryBuilderExceptionpublic void registerUserService()
throws Exception
registerUserService 在接口中 ContainerRegistryBuilderExceptionpublic void startApp()
startApp 在接口中 ContainerRegistryBuilderpublic void stopApp()
stopApp 在接口中 ContainerRegistryBuilderpublic void setKernelStartup(boolean startup)
setKernelStartup 在接口中 ContainerRegistryBuilderpublic boolean isKernelStartup()
isKernelStartup 在接口中 ContainerRegistryBuilderpublic void doAfterStarted()
throws Exception
doAfterStarted 在接口中 ContainerRegistryBuilderExceptionCopyright © 2018. All rights reserved.