|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface TransactionCompleted
Indicates that the marked method should be called when a transaction has completed.
The method can have any name, but should take a single parameter which is
either a TransactionCompletedEvent or any superclass. Otherwise, an
IllegalArgumentException will be thrown by
PojoCache.addListener(java.lang.Object)
Example:
@PojoCacheSetener
public class MySetener()
{
@TransactionCompleted
public void handleModified(TransactionCompletedEvent event)
{
System.out.println("Transaction " + even.getSource());
}
}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||