]
Ryan Emerson updated ISPN-6844:
-------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
Remove redundant enabled flag and disableInterceptor method from
CacheWriter/Loader Interceptors
------------------------------------------------------------------------------------------------
Key: ISPN-6844
URL:
https://issues.jboss.org/browse/ISPN-6844
Project: Infinispan
Issue Type: Enhancement
Components: Loaders and Stores
Reporter: Ryan Emerson
Assignee: Ryan Emerson
Currently both the CacheWriter and CacheLoader interceptors utilise a method
disableInterceptor which sets a boolean flag to false. This method is only every called by
PersistenceManagerImpl when removing the interceptor, at which point it should not be
possible for any of the removed interceptor's methods to be executed. Therefore we
should be able to remove this flag, associated checks and the disableInterceptor method
without issue.