Class MTInterceptorChainFactory

java.lang.Object
org.exoplatform.container.DefaultInterceptorChainFactory
org.exoplatform.container.MTInterceptorChainFactory
All Implemented Interfaces:
org.exoplatform.container.spi.InterceptorChainFactory

public class MTInterceptorChainFactory extends org.exoplatform.container.DefaultInterceptorChainFactory
The "multi-threaded" implementation of a InterceptorChainFactory. This implementation uses 3 static Interceptor which are ConcurrentContainerMT, CachingContainer and ManageableContainer and uses a list of dynamic Interceptor that are retrieved thanks to the ServiceLoader. Then according to the annotations Before and After defined on the dynamic Interceptor, it will define an ordered list of Interceptor classes which will be used at each next calls of DefaultInterceptorChainFactory.getInterceptorChain(ExoContainer, ExoContainer) to re-create the exact same chain of Interceptor.
Version:
$Id$
Author:
Nicolas Filotto
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected List<org.exoplatform.container.spi.Interceptor>
    getStaticInterceptors(org.exoplatform.container.ExoContainer holder, org.exoplatform.container.ExoContainer parent)

    Methods inherited from class org.exoplatform.container.DefaultInterceptorChainFactory

    getDynamicInterceptors, getInterceptorChain, resolve, resolveNext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MTInterceptorChainFactory

      public MTInterceptorChainFactory()
  • Method Details

    • getStaticInterceptors

      protected List<org.exoplatform.container.spi.Interceptor> getStaticInterceptors(org.exoplatform.container.ExoContainer holder, org.exoplatform.container.ExoContainer parent)
      Overrides:
      getStaticInterceptors in class org.exoplatform.container.DefaultInterceptorChainFactory