Capturing Client Events

Lee Painter

The Maverick APIs have an event framework that enables you to capture and perform actions when an event is fired. 

This simply involved adding an EventListener to your code that will filter and process events, you may add as many listeners as you like.

EventServiceImplementation.getInstance().addListener( 
new EventListener() {
public void processEvent(Event evt) {

}
});

The supported events are provided as final static fields on the J2SSHEventCodes class. The same mechanism can be used to capture both client and server events if the APIs are running within the same JVM.