Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#6 Bug in CachingAttributeSourceEditor.

closed-fixed
Alex Ruiz
9
2005-04-08
2005-04-08
Anonymous
No

Hi,

I've tested the CachingAttributeSourceEditor from
wanghy-cache-1.0-RC2
and
found out that it was using a
BracketSeparatedPropertiesParser instead
of a
normal PropertiesEditor to read each line.

It seems that it wouldn't allow me to write something
like this:

<bean id="cachingInterceptor"
class="org.wanghy.cache.interceptor.caching.CachingInterceptor">
<property name="cacheProviderFacade">
<ref local="cacheProvider" />
</property>
<property name="cachingAttributeSource">
<value>
com.mycompany.myclass.get*=[cacheProfileId=myCache]

com.mycompany.myotherclass.get*=[cacheProfileId=myCache]
</value>
</value>
</property>

because there are no brackets around the whole text in
cachingAttributeSource property value. It actually
throws a
java.lang.IllegalArgumentException: The String 'xxx'
should start with
'['
and end with ']' ).

I've tried the following ways and no one worked fine:

1)

[com.mycompany.myclass.get*=[cacheProfileId=myCache]

com.mycompany.myotherclass.get*=[cacheProfileId=myCache]]

2)

[com.mycompany.myclass.get*=[cacheProfileId=myCache]]

[com.mycompany.myotherclass.get*=[cacheProfileId=myCache]]

Kind regards,
Xavier

Discussion

  • Alex Ruiz
    Alex Ruiz
    2005-04-08

    • priority: 5 --> 9
    • assigned_to: nobody --> alruiz15
    • status: open --> closed-fixed