Package org.infinispan.factories
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, configuration
Fields inherited from class org.infinispan.factories.AnyScopeComponentFactory
globalComponentRegistry, globalConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPersistenceInterceptors
(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 ofStoreConfiguration
possibly not present in the cacheConfiguration
-
construct
- Specified by:
construct
in interfaceComponentFactory
- Returns:
- Either a component instance or a
ComponentAlias
pointing to another component.
-