ObjectCache
ObjectCache copied to clipboard
public Object get ( String key, Class objectClass, Type objectType )
I don't understand the use of SoftCachedObject.
I've not read the entire source but I think we can do this :
Change :
public Object get ( String key, Class objectClass, Type objectType )
by
public <T extends Object> get ( String key, Class<T> objectClass, Type objectType )
And drop SoftCachedObject ?
I tried to make the changes but I'm still using Eclipse and this seems not to be compatible with current project structure...
Added some information on SoftCachedObject over here -- https://github.com/iainconnor/ObjectCache/pull/5#issuecomment-48966379 -- let me know if that helps it make more sense. Could possibly be solved nicer by having a unique callback as opposed to a unique object in the response of the callback.