This content has been marked as final.
Show 1 reply
-
1. Cache modified event listener impl
mircea.markus Mar 15, 2011 6:46 AM (in response to leiottawa)EventImpl is of type
CacheEntryModifiedEvent
but why does an exception occur when it is usedas the single parameter? It seems the parameter has to be a super type of
CacheEntryModifiedEvent
whichcontradicts Java (if a method accepts type A as its parameter, it will also accept any subtype of A as its paramer). Does
anyone clarify it? Thanks.
Using EventImpl as a method param is not something to encourage. This is an internal structure and we don't want to expose it.
What functionality do you miss from event API? Perhaps we can add something to one of the Event objects?
The reason I supply EventImpl as the parameter is that I want to override Event.isPre() method. Thanks.
Not sure I get this: you would need to create the EventImpl extenssions yourself then, but they are created internally by ISPN. Can you detail your use case?