|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.
Note that class CustomInterceptorConfig contains JAXB annotations. These annotations determine how XML configuration files are read into instances of configuration class hierarchy as well as they provide meta data for configuration file XML schema generation. Please modify these annotations and Java element types they annotate with utmost understanding and care.
Field Summary | |
---|---|
protected String |
after
|
protected String |
before
|
protected String |
className
|
protected Integer |
index
|
protected CommandInterceptor |
interceptor
|
protected boolean |
isFirst
|
protected boolean |
isLast
|
protected org.infinispan.config.CustomInterceptorConfig.Position |
position
|
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean |
---|
cr |
Fields inherited from class org.infinispan.config.AbstractConfigurationBean |
---|
EMPTY_PROPERTIES, log, 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,
Class<? extends CommandInterceptor> after,
Class<? extends CommandInterceptor> before)
Builds a custom interceptor configuration. |
|
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 |
getBefore()
|
String |
getClassName()
|
int |
getIndex()
|
CommandInterceptor |
getInterceptor()
Returns a the interceptor that we want to add to the chain. |
org.infinispan.config.CustomInterceptorConfig.Position |
getPosition()
|
Properties |
getProperties()
|
int |
hashCode()
|
boolean |
isFirst()
|
boolean |
isLast()
|
void |
setAfterInterceptor(Class<? extends CommandInterceptor> interceptorClass)
Adds the interceptor immediately after the first occurrence of an interceptor having the given class. |
void |
setAfterInterceptor(String afterClass)
Adds the interceptor immediately after the first occurrence of an interceptor having the given class. |
void |
setBeforeInterceptor(Class<? extends CommandInterceptor> interceptorClass)
Adds the interceptor immediately before the first occurrence of an interceptor having the given class. |
void |
setBeforeInterceptor(String beforeClass)
Adds the interceptor immediately before the first occurrence of an interceptor having the given class. |
void |
setClassName(String className)
|
void |
setFirst(boolean first)
Shall this interceptor be the first one in the chain? |
void |
setIndex(int index)
Put this interceptor at the specified index, after the default chain is built. |
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)
|
void |
setPosition(String pos)
|
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 |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected CommandInterceptor interceptor
protected boolean isFirst
protected boolean isLast
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, boolean first, boolean last, int index, Class<? extends CommandInterceptor> after, Class<? extends CommandInterceptor> 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 void setPosition(org.infinispan.config.CustomInterceptorConfig.Position position)
public String getClassName()
public void setClassName(String className)
public void setFirst(boolean first)
public void setLast(boolean last)
public void setPosition(String pos)
public void setIndex(int index)
ConfigurationException
is thrown at construction time.
public void setAfterInterceptor(String afterClass)
public void setAfterInterceptor(Class<? extends CommandInterceptor> interceptorClass)
public void setBeforeInterceptor(String beforeClass)
public void setBeforeInterceptor(Class<? extends CommandInterceptor> interceptorClass)
public CommandInterceptor getInterceptor()
public void setInterceptor(CommandInterceptor interceptor)
public boolean isFirst()
setFirst(boolean)
public boolean isLast()
setLast(boolean)
public int getIndex()
getIndex()
public String getAfter()
getAfter()
public String getBefore()
getBefore()
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)
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |