org.jboss.cache.factories
Class InterceptorChainFactory

java.lang.Object
  extended by org.jboss.cache.factories.ComponentFactory
      extended by org.jboss.cache.factories.InterceptorChainFactory

public class InterceptorChainFactory
extends ComponentFactory

Factory class that builds an interceptor chain based on cache configuration.

Author:
Manik Surtani (manik@jboss.org)

Field Summary
 
Fields inherited from class org.jboss.cache.factories.ComponentFactory
componentRegistry, configuration, log
 
Constructor Summary
InterceptorChainFactory()
           
 
Method Summary
 InterceptorChain buildInterceptorChain()
           
protected
<T> T
construct(Class<T> componentType)
          Constructs a component.
static InterceptorChainFactory getInstance()
          Deprecated. 
static InterceptorChainFactory getInstance(ComponentRegistry componentRegistry, Configuration configuration)
           
 
Methods inherited from class org.jboss.cache.factories.ComponentFactory
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

getInstance

@Deprecated
public static InterceptorChainFactory getInstance()
Deprecated. 

Note - this method used to return a singleton instance, and since 2.1.0 returns a new instance. The method is deprecated and you should use the no-arg constructor to create a new instance of this factory.

Returns:
a NEW instance of this class.

buildInterceptorChain

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

construct

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

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

getInstance

public static InterceptorChainFactory getInstance(ComponentRegistry componentRegistry,
                                                  Configuration configuration)


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