Class InterceptorChainFactory
java.lang.Object
org.infinispan.factories.AnyScopeComponentFactory
org.infinispan.factories.AbstractNamedCacheComponentFactory
org.infinispan.factories.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
-
Field Summary
Fields inherited from class org.infinispan.factories.AbstractNamedCacheComponentFactory
basicComponentRegistry, componentRegistry, configurationFields inherited from class org.infinispan.factories.AnyScopeComponentFactory
globalComponentRegistry, globalConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPersistenceInterceptors(AsyncInterceptorChain interceptorChain, Configuration cacheConfiguration, List<StoreConfiguration> stores) Adds all the interceptors related to persistence to the stack.
-
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 chaincacheConfiguration- The configuration of the cache that owns the interceptorstores- A list ofStoreConfigurationpossibly not present in the cacheConfiguration
-
construct
- Specified by:
constructin interfaceComponentFactory- Returns:
- Either a component instance or a
ComponentAliaspointing to another component.
-