org.infinispan.factories
Class InterceptorChainFactory

java.lang.Object
  extended by org.infinispan.factories.AbstractComponentFactory
      extended by org.infinispan.factories.AbstractNamedCacheComponentFactory
          extended by org.infinispan.factories.InterceptorChainFactory
All Implemented Interfaces:
AutoInstantiableFactory

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)

Field Summary
 
Fields inherited from class org.infinispan.factories.AbstractNamedCacheComponentFactory
componentRegistry, configuration
 
Fields inherited from class org.infinispan.factories.AbstractComponentFactory
globalComponentRegistry, globalConfiguration, log
 
Constructor Summary
InterceptorChainFactory()
           
 
Method Summary
 InterceptorChain buildInterceptorChain()
           
<T> T
construct(Class<T> componentType)
          Constructs a component.
 CommandInterceptor createInterceptor(Class<? extends CommandInterceptor> clazz)
           
static InterceptorChainFactory getInstance(ComponentRegistry componentRegistry, Configuration configuration)
           
 
Methods inherited from class org.infinispan.factories.AbstractComponentFactory
assertTypeConstructable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorChainFactory

public InterceptorChainFactory()
Method Detail

createInterceptor

public CommandInterceptor createInterceptor(Class<? extends CommandInterceptor> clazz)
                                     throws IllegalAccessException,
                                            InstantiationException
Throws:
IllegalAccessException
InstantiationException

buildInterceptorChain

public InterceptorChain buildInterceptorChain()
                                       throws IllegalAccessException,
                                              InstantiationException,
                                              ClassNotFoundException
Throws:
IllegalAccessException
InstantiationException
ClassNotFoundException

construct

public <T> T construct(Class<T> componentType)
Description copied from class: AbstractComponentFactory
Constructs a component.

Specified by:
construct in class AbstractComponentFactory
Parameters:
componentType - type of component
Returns:
a component

getInstance

public static InterceptorChainFactory getInstance(ComponentRegistry componentRegistry,
                                                  Configuration configuration)

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.