|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AbstractNamedCacheConfigurationBean
org.infinispan.config.CustomInterceptorConfig
public class CustomInterceptorConfig
Holds information about the custom interceptors defined in the configuration file.
Field Summary | |
---|---|
protected String |
after
|
protected String |
before
|
protected String |
className
|
protected Integer |
index
|
protected CommandInterceptor |
interceptor
|
protected org.infinispan.config.CustomInterceptorConfig.Position |
position
|
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean |
---|
cr |
Fields inherited from class org.infinispan.config.AbstractConfigurationBean |
---|
overriddenConfigurationElements |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean |
---|
hasComponentStarted, inject |
Methods inherited from class org.infinispan.config.AbstractConfigurationBean |
---|
testImmutability, toTypedProperties, toTypedProperties, willUnmarshall |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected CommandInterceptor interceptor
protected Integer index
protected String after
protected String before
protected org.infinispan.config.CustomInterceptorConfig.Position position
protected String className
Constructor Detail |
---|
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
- Method Detail |
---|
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 String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
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 convert
public void accept(ConfigurationBeanVisitor v)
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |