Details
Description
We're currently hacking together the EHCache version of Castor's impl - only it's broken. The following errors exist in EHCache.java
- The initialize method is missing. This is because the parent's AbstractBaseCache initialize ends up being the visible one. Add the following:
public void initialize(final Properties params) throws CacheAcquireException
{ initialize(IMPLEMENTATION, params); }and your actual initializer will get called.
- Errors during initialization: - TYPES_NO_PARAM doesn't work; remove it. getMethod(String) should be used anywhere it was used, without parameters applied.
- In EHCache 1.2, at least - I haven't tested older versions - the net.sf.ehcache.Element.getObjectValue() doesn't exist - you want getValue().
- Error in get: NPEs when things don't exist.
- You'll note that elementInCache is not null checked; but null is a valid response for when there is no cache entry. You need to test for null
before calling _getObjectValueMethod.invoke()
Any chance of getting this into 1.0.2?
Hi Gregory, I'll try to resolve this for 1.0.2 with some help from your side.