Class InterceptorChainFactory

All Implemented Interfaces:
AutoInstantiableFactory, ComponentFactory

public class InterceptorChainFactory extends AbstractNamedCacheComponentFactory implements AutoInstantiableFactory
Factory class that builds an interceptor chain based on cache configuration.
Since:
4.0
Author:
Manik Surtani (manik@jboss.org), Mircea.Markus@jboss.com, Marko Luksa, Pedro Ruivo
  • Constructor Details

    • InterceptorChainFactory

      public InterceptorChainFactory()
  • Method Details

    • addPersistenceInterceptors

      public void addPersistenceInterceptors(AsyncInterceptorChain interceptorChain, Configuration cacheConfiguration, List<StoreConfiguration> stores)
      Adds all the interceptors related to persistence to the stack.
      Parameters:
      interceptorChain - The chain
      cacheConfiguration - The configuration of the cache that owns the interceptor
      stores - A list of StoreConfiguration possibly not present in the cacheConfiguration
    • construct

      public Object construct(String componentName)
      Specified by:
      construct in interface ComponentFactory
      Returns:
      Either a component instance or a ComponentAlias pointing to another component.