com.jdon.container.builder
类 DefaultContainerBuilder

java.lang.Object
  继承者 com.jdon.container.builder.DefaultContainerBuilder
所有已实现的接口:
ContainerRegistryBuilder
直接已知子类:
AnnotationContainerBuilder

public class DefaultContainerBuilder
extends Object
implements ContainerRegistryBuilder

the container builder the methods invoke order is decided by containerDirector.

作者:
banq

字段摘要
protected  ContainerComponents aspectConfigComponents
           
protected  ContainerComponents basicComponents
           
protected  ContainerWrapper containerWrapper
           
static String module
           
protected  boolean startup
           
protected  XmlContainerRegistry xmlcontainerRegistry
           
 
从接口 com.jdon.container.builder.ContainerRegistryBuilder 继承的字段
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()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

module

public static final String module

basicComponents

protected final ContainerComponents basicComponents

aspectConfigComponents

protected final ContainerComponents aspectConfigComponents

xmlcontainerRegistry

protected final XmlContainerRegistry xmlcontainerRegistry

containerWrapper

protected final ContainerWrapper containerWrapper

startup

protected volatile boolean startup
构造方法详细信息

DefaultContainerBuilder

public DefaultContainerBuilder(ContainerWrapper containerWrapper,
                               ContainerComponents basicComponents,
                               ContainerComponents aspectConfigComponents)
construtor

参数:
containerWrapper -
basicComponents - got from configure file
interceptorsChain - got from configure file
方法详细信息

getContainerWrapper

public ContainerWrapper getContainerWrapper()
指定者:
接口 ContainerRegistryBuilder 中的 getContainerWrapper

registerAppRoot

public void registerAppRoot(String configureFileName)
                     throws Exception
if there are xml configure then add new ones; if not, register it;

指定者:
接口 ContainerRegistryBuilder 中的 registerAppRoot
参数:
configList - Collection the configure collection for jdonframework.xml
抛出:
Exception

registerComponents

public void registerComponents()
                        throws Exception
register all basic components in container.xml

指定者:
接口 ContainerRegistryBuilder 中的 registerComponents
抛出:
Exception

registerAspectComponents

public void registerAspectComponents()
                              throws Exception
register all apsect components in aspect.xml

指定者:
接口 ContainerRegistryBuilder 中的 registerAspectComponents
抛出:
Exception

registerUserService

public void registerUserService()
                         throws Exception
register user services/components in jdonframework.xml AnnotationContainerBuilder will override this method, and register annotation services or components.

指定者:
接口 ContainerRegistryBuilder 中的 registerUserService
抛出:
Exception

startApp

public void startApp()
指定者:
接口 ContainerRegistryBuilder 中的 startApp

stopApp

public void stopApp()
指定者:
接口 ContainerRegistryBuilder 中的 stopApp

setKernelStartup

public void setKernelStartup(boolean startup)
指定者:
接口 ContainerRegistryBuilder 中的 setKernelStartup

isKernelStartup

public boolean isKernelStartup()
指定者:
接口 ContainerRegistryBuilder 中的 isKernelStartup

doAfterStarted

public void doAfterStarted()
                    throws Exception
指定者:
接口 ContainerRegistryBuilder 中的 doAfterStarted
抛出:
Exception


Copyright © 2013. All Rights Reserved.