com.jdon.container.builder
Class DefaultContainerBuilder

java.lang.Object
  extended by com.jdon.container.builder.DefaultContainerBuilder
All Implemented Interfaces:
ContainerBuilder

public class DefaultContainerBuilder
extends java.lang.Object
implements ContainerBuilder

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


Field Summary
static java.lang.String module
           
 
Fields inherited from interface com.jdon.container.builder.ContainerBuilder
APPLICATION_CONTEXT_ATTRIBUTE_NAME
 
Constructor Summary
DefaultContainerBuilder(ContainerWrapper containerWrapper, ContainerComponents basicComponents, ContainerComponents aspectConfigComponents)
          construtor
 
Method Summary
 void addAppConfigureFile(java.lang.String configureFileName)
          if there are xml configure then add new ones; if not, register it;
 ContainerWrapper getContainerWrapper()
           
 boolean isStartup()
           
 void registerAspectComponents()
          register all apsect components in aspect.xml
 void registerComponents()
          register all basic components in container.xml
 void registerUserService()
          register user services in jdonframework.xml
 void setStartup(boolean startup)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module
Constructor Detail

DefaultContainerBuilder

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

Parameters:
containerWrapper -
basicComponents - got from configure file
interceptorsChain - got from configure file
Method Detail

getContainerWrapper

public ContainerWrapper getContainerWrapper()
Specified by:
getContainerWrapper in interface ContainerBuilder

addAppConfigureFile

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

Specified by:
addAppConfigureFile in interface ContainerBuilder
Parameters:
configList - Collection the configure collection for jdonframework.xml
Throws:
java.lang.Exception

registerComponents

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

Specified by:
registerComponents in interface ContainerBuilder
Throws:
java.lang.Exception

registerAspectComponents

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

Specified by:
registerAspectComponents in interface ContainerBuilder
Throws:
java.lang.Exception

registerUserService

public void registerUserService()
                         throws java.lang.Exception
register user services in jdonframework.xml

Specified by:
registerUserService in interface ContainerBuilder
Throws:
java.lang.Exception

setStartup

public void setStartup(boolean startup)
Specified by:
setStartup in interface ContainerBuilder

isStartup

public boolean isStartup()
Specified by:
isStartup in interface ContainerBuilder