
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
Spring 1.2.7, jdk 1.4.2_12
|
|
Issue Links:
|
Related
|
|
|
|
This issue is related to:
|
|
|
MOD-394 In Cache Module, many classes or methods are final, so it's not easy to extend it.
|
|
|
|
|
|
|
|
I'm trying to extend AbstractModelSourceCachingInterceptor for my own specific caching purposes but I find it almost impossible. Problem is in AbstractCachingInterceptor which have final setters and no getters for all properties. In such situation subclasses can not access configured properties like i.e. cacheProviderFacade (to which I need access in my extended interceptor). Further, afterProprtiesSet method is also final and does not provide i.e. beforeAfterPropertiesSet hook which extended classes can invoke before initialization of cache models take place.
So, my need and suggestion is to introduce at least protected getters for all properties, and beforeAfterPropertiesSet hook in AbstractCachingInterceptor class. This features should not brake anything, and if you look at AbstractModelSourceCachingInterceptor class you can find getter for cachingModelSource property. It seams to me that such getters must also be available in AbstractCachingInterceptor if that class is intended to be truly extensible.
Regards,
Damir Murat
|
|
Description
|
I'm trying to extend AbstractModelSourceCachingInterceptor for my own specific caching purposes but I find it almost impossible. Problem is in AbstractCachingInterceptor which have final setters and no getters for all properties. In such situation subclasses can not access configured properties like i.e. cacheProviderFacade (to which I need access in my extended interceptor). Further, afterProprtiesSet method is also final and does not provide i.e. beforeAfterPropertiesSet hook which extended classes can invoke before initialization of cache models take place.
So, my need and suggestion is to introduce at least protected getters for all properties, and beforeAfterPropertiesSet hook in AbstractCachingInterceptor class. This features should not brake anything, and if you look at AbstractModelSourceCachingInterceptor class you can find getter for cachingModelSource property. It seams to me that such getters must also be available in AbstractCachingInterceptor if that class is intended to be truly extensible.
Regards,
Damir Murat |
Show » |
Sort Order:
made changes - 14/Sep/06 03:41 AM
| Field |
Original Value |
New Value |
|
Assignee
|
Costin Leau
[ costin
]
|
Omar Irbouh
[ irbouho
]
|
made changes - 08/Jul/07 11:06 PM
|
Status
|
Open
[ 1
]
|
In Progress
[ 3
]
|
made changes - 01/Feb/08 09:32 AM
|
Link
|
|
This issue is related to MOD-394
[ MOD-394
]
|
|
Omar, do you have any plans to do this?