org.infinispan.interceptors.base
Class BaseCustomInterceptor
java.lang.Object
org.infinispan.commands.AbstractVisitor
org.infinispan.interceptors.base.CommandInterceptor
org.infinispan.interceptors.base.BaseCustomInterceptor
- All Implemented Interfaces:
- Visitor
public class BaseCustomInterceptor
- extends CommandInterceptor
Anyone using the AdvancedCache.addInterceptor(CommandInterceptor, int)
method (or any of its
overloaded forms) or registering custom interceptors via XML should extend this base class when creating their own
custom interceptors.
As of Infinispan 5.1, annotations on custom interceptors, including Inject
, Start
and Stop
will not be respected and callbacks will not be made.
Instead, custom interceptor authors should extend this base class to gain access to Cache
and EmbeddedCacheManager
,
from which other components may be accessed. Further, lifecycle should be implemented by overriding start()
and stop()
as defined in this class.
- Since:
- 5.1
- Author:
- Manik Surtani
Method Summary |
protected void |
start()
|
protected void |
stop()
|
Methods inherited from class org.infinispan.commands.AbstractVisitor |
visitApplyDeltaCommand, visitClearCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutKeyValueCommand, visitPutMapCommand, visitRemoveCommand, visitReplaceCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitValuesCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cache
protected Cache<?,?> cache
embeddedCacheManager
protected EmbeddedCacheManager embeddedCacheManager
BaseCustomInterceptor
public BaseCustomInterceptor()
start
protected void start()
stop
protected void stop()
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.