|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.factories.ComponentFactory
org.jboss.cache.factories.InterceptorChainFactory
public class InterceptorChainFactory
Factory class that builds an interceptor chain based on cache configuration.
| Field Summary |
|---|
| Fields inherited from class org.jboss.cache.factories.ComponentFactory |
|---|
componentRegistry, configuration, log |
| Constructor Summary | |
|---|---|
InterceptorChainFactory()
|
|
| Method Summary | ||
|---|---|---|
static List<Interceptor> |
asList(Interceptor interceptor)
|
|
Interceptor |
buildInterceptorChain()
|
|
protected
|
construct(String componentName,
Class<T> componentType)
Initialises the interceptors with a CacheSPI instance. |
|
Interceptor |
correctInterceptorChaining(Interceptor first)
The same as correctInterceptorChaining(java.util.List)
except that it takes in the first interceptor in the chain instead of a list of interceptors, and traverses the chain to
generate a list. |
|
Interceptor |
correctInterceptorChaining(List<Interceptor> interceptors)
"Fixes" the next() and last() pointers for each interceptor, based on the order presented in the list passed in, and also re-assesses dependencies for each interceptor, injecting dependencies accordingingly. |
|
static InterceptorChainFactory |
getInstance()
Deprecated. |
|
static InterceptorChainFactory |
getInstance(ComponentRegistry componentRegistry,
Configuration configuration)
|
|
Interceptor |
setFirstInterceptor(Class<? extends Interceptor> clazz)
|
|
Interceptor |
setFirstInterceptor(Interceptor i)
|
|
static Interceptor |
setLastInterceptorPointer(Interceptor first,
Interceptor last)
|
|
| 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 |
|---|
public InterceptorChainFactory()
| Method Detail |
|---|
@Deprecated public static InterceptorChainFactory getInstance()
public static Interceptor setLastInterceptorPointer(Interceptor first,
Interceptor last)
public Interceptor buildInterceptorChain()
throws IllegalAccessException,
InstantiationException,
ClassNotFoundException
IllegalAccessException
InstantiationException
ClassNotFoundException
public Interceptor setFirstInterceptor(Class<? extends Interceptor> clazz)
throws IllegalAccessException,
InstantiationException
IllegalAccessException
InstantiationExceptionpublic Interceptor setFirstInterceptor(Interceptor i)
public static List<Interceptor> asList(Interceptor interceptor)
public Interceptor correctInterceptorChaining(Interceptor first)
correctInterceptorChaining(java.util.List)
except that it takes in the first interceptor in the chain instead of a list of interceptors, and traverses the chain to
generate a list. Identical to calling
InterceptorChainFactory.correctInterceptorChaining( InterceptorChainFactory.asList(first), configuration, componentRegistry );
first - first interceptor in the chain to correct.
public Interceptor correctInterceptorChaining(List<Interceptor> interceptors)
interceptors - interceptor chain to correct
protected <T> T construct(String componentName,
Class<T> componentType)
construct in class ComponentFactorycomponentName - componentType - type of component
public static InterceptorChainFactory getInstance(ComponentRegistry componentRegistry,
Configuration configuration)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||