public class CustomInterceptorConfig extends AbstractNamedCacheConfigurationBean
Modifier and Type | Field and Description |
---|---|
protected String |
after |
protected String |
before |
protected String |
className |
protected Integer |
index |
protected CommandInterceptor |
interceptor |
protected org.infinispan.config.CustomInterceptorConfig.Position |
position |
cr
overriddenConfigurationElements
Constructor and Description |
---|
CustomInterceptorConfig() |
CustomInterceptorConfig(CommandInterceptor interceptor)
Constructs an interceptor config based on the supplied interceptor instance.
|
CustomInterceptorConfig(CommandInterceptor interceptor,
boolean first,
boolean last,
int index,
String after,
String before)
Builds a custom interceptor configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ConfigurationBeanVisitor v) |
CustomInterceptorConfig |
clone() |
boolean |
equals(Object o) |
String |
getAfter() |
String |
getAfterInterceptor() |
String |
getBefore() |
String |
getBeforeInterceptor() |
String |
getClassName() |
Integer |
getIndex() |
CommandInterceptor |
getInterceptor()
Returns a the interceptor that we want to add to the chain.
|
org.infinispan.config.CustomInterceptorConfig.Position |
getPosition() |
String |
getPositionAsString() |
Properties |
getProperties() |
int |
hashCode() |
boolean |
isFirst() |
boolean |
isLast() |
void |
setAfterInterceptor(Class<? extends CommandInterceptor> interceptorClass)
Places the new interceptor directly after the instance of the named interceptor which is
specified via its fully qualified class name.
|
void |
setAfterInterceptor(String afterClass)
Places the new interceptor directly after the instance of the named interceptor which is
specified via its fully qualified class name.
|
void |
setBeforeInterceptor(Class<? extends CommandInterceptor> interceptorClass)
Places the new interceptor directly before the instance of the named interceptor which is
specified via its fully qualified class name..
|
void |
setBeforeInterceptor(String beforeClass)
Places the new interceptor directly before the instance of the named interceptor which is
specified via its fully qualified class name..
|
void |
setClassName(String className)
Fully qualified interceptor class name which must extend org.infinispan.interceptors.base.CommandInterceptor.
|
void |
setFirst(boolean first)
Shall this interceptor be the first one in the chain?
|
void |
setIndex(Integer index)
A position at which to place this interceptor in the chain, with 0 being the first position.
|
void |
setInterceptor(CommandInterceptor interceptor)
Returns a the interceptor that we want to add to the chain.
|
void |
setLast(boolean last)
Shall this interceptor be the last one in the chain?
|
void |
setPosition(org.infinispan.config.CustomInterceptorConfig.Position position)
A position at which to place this interceptor in the chain.
|
void |
setPositionAsString(String pos)
A position at which to place this interceptor in the chain.
|
void |
setProperties(Properties properties) |
String |
toString() |
protected String |
uc(String s)
Safely converts a String to upper case.
|
hasComponentStarted, inject
testImmutability, toTypedProperties, toTypedProperties, willUnmarshall
protected CommandInterceptor interceptor
protected Integer index
protected String after
protected String before
protected org.infinispan.config.CustomInterceptorConfig.Position position
protected String className
public CustomInterceptorConfig()
public CustomInterceptorConfig(CommandInterceptor interceptor, boolean first, boolean last, int index, String after, String before)
interceptor
- interceptor instance, already initialized with all attributes specified in the configurationfirst
- true if you wan this to be the first interceptor in the chainlast
- true if you wan this to be the last interceptor in the chainindex
- an absolute position within the interceptor chainafter
- if you want this interceptor immediately after the specified class in the chainbefore
- immediately before the specified class in the chainpublic CustomInterceptorConfig(CommandInterceptor interceptor)
interceptor
- public Properties getProperties()
public void setProperties(Properties properties)
public org.infinispan.config.CustomInterceptorConfig.Position getPosition()
public String getPositionAsString()
public void setPosition(org.infinispan.config.CustomInterceptorConfig.Position position)
position
- public String getClassName()
public void setClassName(String className)
className
- public void setFirst(boolean first)
public void setLast(boolean last)
public void setPositionAsString(String pos)
pos
- public void setIndex(Integer index)
index
- public void setAfterInterceptor(String afterClass)
afterClass
- public void setAfterInterceptor(Class<? extends CommandInterceptor> interceptorClass)
interceptorClass
- public void setBeforeInterceptor(String beforeClass)
beforeClass
- public void setBeforeInterceptor(Class<? extends CommandInterceptor> interceptorClass)
interceptorClass
- public CommandInterceptor getInterceptor()
public void setInterceptor(CommandInterceptor interceptor)
public boolean isFirst()
setFirst(boolean)
public boolean isLast()
setLast(boolean)
public Integer getIndex()
getIndex()
public String getAfter()
getAfter()
public String getAfterInterceptor()
getAfter()
public String getBefore()
getBefore()
public String getBeforeInterceptor()
public CustomInterceptorConfig clone() throws CloneNotSupportedException
clone
in interface CloneableConfigurationComponent
clone
in class AbstractNamedCacheConfigurationBean
CloneNotSupportedException
protected String uc(String s)
AbstractConfigurationBean
uc
in class AbstractConfigurationBean
s
- string to convertpublic void accept(ConfigurationBeanVisitor v)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.