[infinispan-issues] [JBoss JIRA] Created: (ISPN-605) Cannot add custom interceptor to the Cache programmatically

Jacek Gerbszt (JIRA) jira-events at lists.jboss.org
Mon Aug 16 08:09:12 EDT 2010


Cannot add custom interceptor to the Cache programmatically
-----------------------------------------------------------

                 Key: ISPN-605
                 URL: https://jira.jboss.org/browse/ISPN-605
             Project: Infinispan
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 4.1.0.CR2
            Reporter: Jacek Gerbszt
            Assignee: Manik Surtani
            Priority: Minor


it's impossible to define custom interceptor this way:
Configuration config = new Configuration();
List<CustomInterceptorConfig> customInterceptors = ....;
config.setCustomInterceptors(customInterceptors);

The problem is in the class org.infinispan.config.OverrideConfigurationVisitor. Override() method overrides everything but customInterceptorsType field. I think a single line should solve this problem:

overrideFields(customInterceptorsType, override.customInterceptorsType);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list