Class CachingContainerMT

  • All Implemented Interfaces:
    Serializable, org.exoplatform.container.spi.Container, org.exoplatform.container.spi.Interceptor, org.picocontainer.Disposable, org.picocontainer.Startable

    public class CachingContainerMT
    extends org.exoplatform.container.CachingContainer
    Version:
    $Id$
    Author:
    Nicolas Filotto
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ThreadLocal<Deque<DependencyStack>> dependencyStacks
      Used to detect all the dependencies not properly defined
      • Fields inherited from class org.exoplatform.container.AbstractInterceptor

        holder, parent
      • Fields inherited from class org.exoplatform.container.AbstractContainer

        delegate
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T getComponentInstance​(Object componentKey, Class<T> bindType, boolean autoRegistration)
      <T> T getComponentInstanceOfType​(Class<T> componentType, boolean autoRegistration)
      • Methods inherited from class org.exoplatform.container.CachingContainer

        getComponentAdapterOfType, getComponentAdaptersOfType, getComponentInstancesOfType, getId, registerComponentImplementation, registerComponentInstance, unregisterComponent
      • Methods inherited from class org.exoplatform.container.AbstractInterceptor

        setHolder, setParent, setSuccessor
      • Methods inherited from class org.exoplatform.container.AbstractContainer

        accept, createComponent, dispose, getComponentAdapter, getComponentAdapters, getManagementContext, getMBeanServer, getScopingObjectName, getSuccessor, initialize, start, stop
      • Methods inherited from interface org.exoplatform.container.spi.Container

        accept, createComponent, getComponentAdapter, getComponentAdapters, getManagementContext, getMBeanServer, getScopingObjectName, getSuccessor, initialize
      • Methods inherited from interface org.picocontainer.Disposable

        dispose
      • Methods inherited from interface org.picocontainer.Startable

        start, stop
    • Field Detail

      • dependencyStacks

        protected final transient ThreadLocal<Deque<DependencyStack>> dependencyStacks
        Used to detect all the dependencies not properly defined
    • Constructor Detail

      • CachingContainerMT

        public CachingContainerMT()
    • Method Detail

      • getComponentInstanceOfType

        public <T> T getComponentInstanceOfType​(Class<T> componentType,
                                                boolean autoRegistration)
        Specified by:
        getComponentInstanceOfType in interface org.exoplatform.container.spi.Container
        Overrides:
        getComponentInstanceOfType in class org.exoplatform.container.CachingContainer
      • getComponentInstance

        public <T> T getComponentInstance​(Object componentKey,
                                          Class<T> bindType,
                                          boolean autoRegistration)
                                   throws org.exoplatform.container.spi.ContainerException
        Specified by:
        getComponentInstance in interface org.exoplatform.container.spi.Container
        Overrides:
        getComponentInstance in class org.exoplatform.container.CachingContainer
        Throws:
        org.exoplatform.container.spi.ContainerException