org.objectweb.jotm.examples
Class ListenerImpl

java.lang.Object
  |
  +--org.objectweb.jotm.examples.ListenerImpl
All Implemented Interfaces:
EventListener
Direct Known Subclasses:
AccountImpl

public class ListenerImpl
extends java.lang.Object
implements EventListener


Constructor Summary
ListenerImpl()
           
 
Method Summary
 void abort()
           
 void before_completion(BeforeCompletionEvent event)
           
 void commit()
           
 void handleEvent(Event event)
          Handle event.
 void one_phase_commit()
           
 void prepare(PrepareEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerImpl

public ListenerImpl()
Method Detail

handleEvent

public void handleEvent(Event event)
Description copied from interface: EventListener
Handle event. This method is invoked when an event of the specified type occurs. Clearly, the listener had to be registered as a listener of the event type before the event occurs.

Specified by:
handleEvent in interface EventListener
Parameters:
event - event data

commit

public void commit()

one_phase_commit

public void one_phase_commit()

abort

public void abort()

prepare

public void prepare(PrepareEvent event)

before_completion

public void before_completion(BeforeCompletionEvent event)