[infinispan-issues] [JBoss JIRA] (ISPN-1430) advancedCache.addInterceptorXYZ method don't inform the caller if the operation fails
Manik Surtani (Commented) (JIRA)
jira-events at lists.jboss.org
Wed Nov 16 06:38:40 EST 2011
[ https://issues.jboss.org/browse/ISPN-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643303#comment-12643303 ]
Manik Surtani commented on ISPN-1430:
-------------------------------------
Ah, my bad. CacheImpl in turn calls InterceptorChain.addXYZ() and the latter *does* return a boolean:
https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/interceptors/InterceptorChain.java#L219
Just that this isn't passed out to API. :)
> advancedCache.addInterceptorXYZ method don't inform the caller if the operation fails
> -------------------------------------------------------------------------------------
>
> Key: ISPN-1430
> URL: https://issues.jboss.org/browse/ISPN-1430
> Project: Infinispan
> Issue Type: Feature Request
> Components: Core API
> Affects Versions: 5.0.0.FINAL
> Reporter: Mircea Markus
> Assignee: Manik Surtani
>
> Problem:
> cache.getAdvancedCache().addInterceptorAfter(new ErrorInducingInterceptor(), NonTransactionalLockingInterceptor.class);
> if NonTransactionalLockingInterceptor doesn't exist in the chain then the method return silently without informing the user that it didn't succeed. This is not API friendly.
> Suggested solution: throw an exception to inform the user that his attempt is not correct.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list