History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CACHE-92
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Andres March
Reporter: Stephane Chauvin
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OSCache

public access for configuration properties

Created: 08/Jul/04 11:48 AM   Updated: 23/Jan/05 05:00 PM
Component/s: Base Classes
Affects Version/s: 2.0.2
Fix Version/s: 2.1

File Attachments: 1. Text File OSCache_configDisk_patch.txt (10 kb)
2. Text File OSCache_configHashDisk_patch.txt (0.7 kb)

Environment: All
Issue Links:
Container
 
This issue is part of:
CACHE-111 public access for disk persistence co... Trivial Closed


 Description  « Hide
Hi,

In order to use the GeneralCacheAdministrator(java.util.Properties p) constructor with a Properties object as argument, please provide the configuration keys with public constants.

The constants in AbstractCacheAdministrator defining the configuration properties have protected access. Dynamic custom configurations need to re-declare them.

Also, to be consistent with the other configuration property, the keys CACHE_ENTRY_EVENT_LISTENERS and PERSISTENCE_CLASS should have the suffix _KEY. Since today it was not with a public access, it should be fine to rename them.

Best regards,
Stéphane


 All   Comments   Change History      Sort Order:
Stephane Chauvin - [24/Aug/04 08:54 AM ]
Thanks a lot for your previous fix!

Is it possible to have the same for com.opensymphony.oscache.plugins.diskpersistence.DiskPersistenceListener?
I would need to have CACHE_PATH_KEY public instead of protected.

Sorry for not notice it before :( I didn't look at the same needs for the other plugins configuration...

Stephane

Stephane Chauvin - [31/Aug/04 03:53 AM ]
OSCache_configDisk_patch.txt: patch to make AbstractDiskPersistenceListener.CACHE_PATH_KEY public.

Other modifications was made by ANT build (refactoring).

Thanks.

Stephane Chauvin - [31/Aug/04 07:35 AM ]
OSCache_configHashDisk_patch.txt: patch to make HashDiskPersistenceListener.HASH_ALGORITHM_KEY public.

Thanks.

Stephane Chauvin - [29/Sep/04 04:08 AM ]
Patches avalaible.
Unable to re-open CACHE-92.