Uploaded image for project: 'Spring Modules'
  1. Spring Modules
  2. MOD-517

MethodMapCacheModelSource and MethodMatcher should allow to specify method signature in cachingModels

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.8
    • Fix Version/s: None
    • Component/s: CACHE
    • Labels:
      None

      Description

      Actually, the cachingModels doesn't allow to specify a fully qualified method name (for instance : a.b.ClassName.methodName(String, String). The method used in MethodMatcher doesn't care of the method parameters.
      So this doesn't work :

      
      

      <bean id="personnesBeanInterceptor"
      class="org.springmodules.cache.interceptor.caching.MethodMapCachingInterceptor">
      <property name="cacheProviderFacade" ref="cacheProviderFacade">
      </property>
      <property name="cachingModels">
      <props>
      <prop
      key="com.personnes.services.recherchepersonne.ServicesRecherchePersonne.findCollaborateurByTrigramme(String)">cacheName=cachePersonnes</prop>
      </props>
      </property>
      </bean>

      {/code}

        Attachments

          Activity

            People

            Assignee:
            yatesco Colin Yates
            Reporter:
            djeanprost Dominique Jean-Prost
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: