Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-605

Cannot add custom interceptor to the Cache programmatically

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 4.1.0.CR3
    • 4.1.0.CR2
    • Configuration
    • None
    • Low

      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);

              manik_jira Manik Surtani (Inactive)
              gerbszt_jira Jacek Gerbszt (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: