Search in sources :

Example 1 with ManageableContainer

use of org.exoplatform.container.management.ManageableContainer in project kernel by exoplatform.

the class DefaultInterceptorChainFactory method getStaticInterceptors.

/**
 * Gives the static {@link Interceptor} from the last to the head
 */
protected List<Interceptor> getStaticInterceptors(ExoContainer holder, ExoContainer parent) {
    List<Interceptor> list = new ArrayList<Interceptor>(4);
    list.add(new ConcurrentContainer(holder, parent));
    list.add(new CachingContainer());
    list.add(new ManageableContainer(holder, parent));
    return list;
}
Also used : ManageableContainer(org.exoplatform.container.management.ManageableContainer) ArrayList(java.util.ArrayList) Interceptor(org.exoplatform.container.spi.Interceptor)

Example 2 with ManageableContainer

use of org.exoplatform.container.management.ManageableContainer in project kernel by exoplatform.

the class MTInterceptorChainFactory method getStaticInterceptors.

/**
 * {@inheritDoc}
 */
protected List<Interceptor> getStaticInterceptors(ExoContainer holder, ExoContainer parent) {
    List<Interceptor> list = new ArrayList<Interceptor>(4);
    list.add(new ConcurrentContainerMT(holder, parent));
    list.add(new CachingContainerMT());
    list.add(new ManageableContainer(holder, parent));
    return list;
}
Also used : ManageableContainer(org.exoplatform.container.management.ManageableContainer) ArrayList(java.util.ArrayList) Interceptor(org.exoplatform.container.spi.Interceptor)

Aggregations

ArrayList (java.util.ArrayList)2 ManageableContainer (org.exoplatform.container.management.ManageableContainer)2 Interceptor (org.exoplatform.container.spi.Interceptor)2