|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | |
---|---|
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. |
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. |
Object |
nextInterceptor(InvocationContext ctx)
Deprecated. Forwards the call to the nextInterceptor interceptor in the chain. |
void |
setCache(CacheSPI cache)
Deprecated. |
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 Object invoke(InvocationContext ctx) throws Throwable
nextInterceptor(org.jboss.cache.InvocationContext)
Throwable
public Object nextInterceptor(InvocationContext ctx) throws Throwable
Throwable
public String toString()
toString
in class Object
public Object handleDefault(InvocationContext ctx, VisitableCommand command) throws Throwable
CommandInterceptor
handleDefault
in class CommandInterceptor
ctx
- invocation contextcommand
- command to invoke
Throwable
- in the event of problems
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |