Annotation Type TransactionRegistered

public @interface TransactionRegistered

Indicates that the marked method should be called when a transaction has registered.

The method can have any name, but should take a single parameter which is either a TransactionRegisteredEvent or any superclass. Otherwise, an IllegalArgumentException will be thrown by PojoCache.addListener(java.lang.Object)


    public class MySetener()
       public void handleModified(TransactionRegisteredEvent event)
          System.out.println("Transaction " + even.getSource());

Jason T. Greene

Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.