de.novanic.eventservice.client.event.listener.unlisten
Class UnlistenEventListenerAdapter

java.lang.Object
  extended by de.novanic.eventservice.client.event.listener.unlisten.UnlistenEventListenerAdapter
All Implemented Interfaces:
RemoteEventListener, UnlistenEventListener

public class UnlistenEventListenerAdapter
extends java.lang.Object
implements UnlistenEventListener

The UnlistenEventListener can be implemented to listen for UnlistenEvent instances. An UnlistenEvent is for example triggered on a timeout or when a user/client leaves a domain. The UnlistenEventListenerAdapter provides the apply method (RemoteEventListener.apply(de.novanic.eventservice.client.event.Event)) and a default implementation of UnlistenEventListener.

Author:
sstrohschein
Date: 08.06.2009
Time: 22:35:00

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.novanic.eventservice.client.event.listener.unlisten.UnlistenEventListener
UnlistenEventListener.Scope
 
Constructor Summary
UnlistenEventListenerAdapter()
           
 
Method Summary
 void apply(Event anEvent)
          The apply method checks if the occurred event is an UnlistenEvent and dispatches the event to UnlistenEventListener.onUnlisten(UnlistenEvent).
 void onUnlisten(UnlistenEvent anUnlistenEvent)
          The method onUnlisten is called when an UnlistenEvent occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnlistenEventListenerAdapter

public UnlistenEventListenerAdapter()
Method Detail

apply

public void apply(Event anEvent)
The apply method checks if the occurred event is an UnlistenEvent and dispatches the event to UnlistenEventListener.onUnlisten(UnlistenEvent).

Specified by:
apply in interface RemoteEventListener
Parameters:
anEvent - event to process

onUnlisten

public void onUnlisten(UnlistenEvent anUnlistenEvent)
The method onUnlisten is called when an UnlistenEvent occurs.

Specified by:
onUnlisten in interface UnlistenEventListener
Parameters:
anUnlistenEvent - triggered UnlistenEvent