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

Cannot add custom interceptor to the Cache programmatically

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: