public class LaContainerImpl extends Object implements LaContainer, ContainerConstants
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected Map<LaContainer,Integer> |
childPositions |
protected List<LaContainer> |
children |
protected ClassLoader |
classLoader |
protected List<ComponentDef> |
componentDefList |
protected Map<Object,org.lastaflute.di.core.meta.impl.LaContainerImpl.ComponentDefHolder> |
componentDefMap |
protected CaseInsensitiveMap |
descendants |
protected ExternalContext |
externalContext |
protected ExternalContextComponentDefRegister |
externalContextComponentDefRegister |
protected boolean |
inited |
protected boolean |
initializeOnCreate |
protected MetaDefSupport |
metaDefSupport |
protected String |
namespace |
protected List<LaContainer> |
parents |
protected String |
path |
protected LaContainer |
root |
APPLICATION_SCOPE, COMPONENT_DEF_NAME, CONFIG_NAME, CONTAINER_NAME, HEADER, HEADER_VALUES, INIT_PARAM, NS_SEP, NS_SEP_STR, PACKAGE_SEP, PARAM, PARAM_VALUES, REQUEST_NAME, REQUEST_SCOPE, RESPONSE_NAME, SERVLET_CONTEXT_NAME, SESSION_NAME, SESSION_SCOPE| コンストラクタと説明 |
|---|
LaContainerImpl() |
protected Map<Object,org.lastaflute.di.core.meta.impl.LaContainerImpl.ComponentDefHolder> componentDefMap
protected List<ComponentDef> componentDefList
protected String namespace
protected String path
protected boolean initializeOnCreate
protected List<LaContainer> children
protected Map<LaContainer,Integer> childPositions
protected List<LaContainer> parents
protected CaseInsensitiveMap descendants
protected LaContainer root
protected ExternalContext externalContext
protected ExternalContextComponentDefRegister externalContextComponentDefRegister
protected MetaDefSupport metaDefSupport
protected boolean inited
protected ClassLoader classLoader
public LaContainer getRoot()
getRoot インタフェース内 LaContainerpublic void setRoot(LaContainer root)
setRoot インタフェース内 LaContainerpublic <COMPONENT> COMPONENT getComponent(Object componentKey)
getComponent インタフェース内 LaContainerpublic Object[] findComponents(Object componentKey)
findComponents インタフェース内 LaContainerpublic Object[] findAllComponents(Object componentKey) throws CyclicReferenceComponentException
findAllComponents インタフェース内 LaContainerCyclicReferenceComponentExceptionpublic Object[] findLocalComponents(Object componentKey) throws CyclicReferenceComponentException
findLocalComponents インタフェース内 LaContainercomponentKey - The key of the component. (NotNull)CyclicReferenceComponentException - When the components refers each other.protected Object[] toComponentArray(Object componentKey, ComponentDef[] componentDefs)
public void injectDependency(Object outerComponent)
injectDependency インタフェース内 LaContainerpublic void injectDependency(Object outerComponent, Class<?> componentClass)
injectDependency インタフェース内 LaContainerpublic void injectDependency(Object outerComponent, String componentName)
injectDependency インタフェース内 LaContainerpublic void register(Object component)
register インタフェース内 LaContainerpublic void register(Object component, String componentName)
register インタフェース内 LaContainerpublic void register(Class<?> componentClass)
register インタフェース内 LaContainerpublic void register(Class<?> componentClass, String componentName)
register インタフェース内 LaContainerpublic void register(ComponentDef componentDef)
register インタフェース内 LaContainerpublic void register0(ComponentDef componentDef)
public void registerByClass(ComponentDef componentDef)
registerByClass インタフェース内 LaContainerprotected void registerByName(ComponentDef componentDef)
protected void registerMap(Object key, ComponentDef componentDef)
public void registerMap(Object key, ComponentDef componentDef, LaContainer container)
registerMap インタフェース内 LaContainerprotected void registerParent(Object key, ComponentDef componentDef)
public int getComponentDefSize()
getComponentDefSize インタフェース内 LaContainerpublic ComponentDef getComponentDef(int index)
getComponentDef インタフェース内 LaContainerpublic ComponentDef getComponentDef(Object key)
getComponentDef インタフェース内 LaContainerpublic ComponentDef[] findComponentDefs(Object key)
findComponentDefs インタフェース内 LaContainerpublic ComponentDef[] findAllComponentDefs(Object componentKey)
findAllComponentDefs インタフェース内 LaContainerpublic ComponentDef[] findLocalComponentDefs(Object componentKey)
findLocalComponentDefs インタフェース内 LaContainerprotected ComponentDef[] toComponentDefArray(ComponentDef cd)
protected ComponentDef internalGetComponentDef(Object key)
public boolean hasComponentDef(Object componentKey)
hasComponentDef インタフェース内 LaContainerpublic boolean hasDescendant(String path)
hasDescendant インタフェース内 LaContainerpublic LaContainer getDescendant(String path)
getDescendant インタフェース内 LaContainerpublic void registerDescendant(LaContainer descendant)
registerDescendant インタフェース内 LaContainerpublic void include(LaContainer child)
include インタフェース内 LaContainerprotected int getContainerPosition(LaContainer container)
protected boolean isNeedNS(Object key, ComponentDef cd)
public LaContainer findChild(String namespace)
findChild インタフェース内 LaContainerpublic int getChildSize()
getChildSize インタフェース内 LaContainerpublic LaContainer getChild(int index)
getChild インタフェース内 LaContainerpublic int getParentSize()
getParentSize インタフェース内 LaContainerpublic LaContainer getParent(int index)
getParent インタフェース内 LaContainerpublic void addParent(LaContainer parent)
addParent インタフェース内 LaContainerpublic void init()
init インタフェース内 LaContainerprotected void doInit()
protected void throwContainerInitFailureException(Throwable cause)
public void destroy()
destroy インタフェース内 LaContainerpublic static ComponentDef createTooManyRegistration(Object key, ComponentDef currentComponentDef, ComponentDef newComponentDef)
protected void assertParameterIsNotNull(Object parameter, String name)
parameter - name - protected void assertParameterIsNotEmpty(String parameter, String name)
parameter - name - public String getNamespace()
getNamespace インタフェース内 LaContainerpublic void setNamespace(String namespace)
setNamespace インタフェース内 LaContainerpublic boolean isInitializeOnCreate()
isInitializeOnCreate インタフェース内 LaContainerpublic void setInitializeOnCreate(boolean initializeOnCreate)
setInitializeOnCreate インタフェース内 LaContainerpublic String getPath()
getPath インタフェース内 LaContainerpublic void setPath(String path)
setPath インタフェース内 LaContainerpublic ExternalContext getExternalContext()
getExternalContext インタフェース内 LaContainerpublic void setExternalContext(ExternalContext externalContext)
setExternalContext インタフェース内 LaContainerpublic ExternalContextComponentDefRegister getExternalContextComponentDefRegister()
getExternalContextComponentDefRegister インタフェース内 LaContainerpublic void setExternalContextComponentDefRegister(ExternalContextComponentDefRegister register)
setExternalContextComponentDefRegister インタフェース内 LaContainerpublic void addMetaDef(MetaDef metaDef)
addMetaDef インタフェース内 MetaDefAwarepublic MetaDef getMetaDef(int index)
getMetaDef インタフェース内 MetaDefAwarepublic MetaDef getMetaDef(String name)
getMetaDef インタフェース内 MetaDefAwarepublic MetaDef[] getMetaDefs(String name)
getMetaDefs インタフェース内 MetaDefAwarepublic int getMetaDefSize()
getMetaDefSize インタフェース内 MetaDefAwarepublic ClassLoader getClassLoader()
getClassLoader インタフェース内 LaContainerpublic void setClassLoader(ClassLoader classLoader)
setClassLoader インタフェース内 LaContainerCopyright © 2015–2018 The DBFlute Project. All rights reserved.