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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPersistenceInterceptors
(AsyncInterceptorChain interceptorChain, Configuration cacheConfiguration, List<StoreConfiguration> stores) Adds all the interceptors related to persistence to the stack.static InterceptorChainFactory
getInstance
(ComponentRegistry componentRegistry, Configuration configuration) Deprecated, for removal: This API element is subject to removal in a future version.Since 9.4, not used.Methods inherited from class org.infinispan.factories.AnyScopeComponentFactory
construct
-
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
- Overrides:
construct
in classAnyScopeComponentFactory
- Returns:
- Either a component instance or a
ComponentAlias
pointing to another component.
-
getInstance
@Deprecated(forRemoval=true) public static InterceptorChainFactory getInstance(ComponentRegistry componentRegistry, Configuration configuration) Deprecated, for removal: This API element is subject to removal in a future version.Since 9.4, not used.
-