|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.commands.AbstractVisitor
org.jboss.cache.interceptors.base.CommandInterceptor
org.jboss.cache.interceptors.Interceptor
CommandInterceptor
instead, since it provides strongly typed callbacks which are more efficient.
@Deprecated public abstract class Interceptor
Class representing an interceptor.
Field Summary | |
---|---|
protected CacheSPI<?,?> |
cache
Deprecated. |
protected boolean |
trace
Deprecated. |
Fields inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
---|
configuration, log |
Constructor Summary | |
---|---|
Interceptor()
Deprecated. |
Method Summary | |
---|---|
java.lang.Object |
handleDefault(InvocationContext ctx,
VisitableCommand command)
Deprecated. The default behaviour of the visitXXX methods, which is to ignore the call and pass the call up to the next interceptor in the chain. |
java.lang.Object |
invoke(InvocationContext ctx)
Deprecated. Using this method call for forwarding a call in the chain is not redable and error prone in the case of interceptors extending other interceptors. |
java.lang.Object |
nextInterceptor(InvocationContext ctx)
Deprecated. Forwards the call to the nextInterceptor interceptor in the chain. |
void |
setCache(CacheSPI cache)
Deprecated. |
java.lang.String |
toString()
Deprecated. |
Methods inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
---|
getNext, hasNext, invokeNextInterceptor, setNext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected CacheSPI<?,?> cache
protected boolean trace
Constructor Detail |
---|
public Interceptor()
Method Detail |
---|
public void setCache(CacheSPI cache)
public java.lang.Object invoke(InvocationContext ctx) throws java.lang.Throwable
nextInterceptor(org.jboss.cache.InvocationContext)
java.lang.Throwable
public java.lang.Object nextInterceptor(InvocationContext ctx) throws java.lang.Throwable
java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object handleDefault(InvocationContext ctx, VisitableCommand command) throws java.lang.Throwable
CommandInterceptor
handleDefault
in class CommandInterceptor
ctx
- invocation contextcommand
- command to invoke
java.lang.Throwable
- in the event of problems
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |