org.ow2.jonas.lib.tenant.listener
Class TenantEventListener

java.lang.Object
  extended by org.ow2.jonas.lib.tenant.listener.TenantEventListener
All Implemented Interfaces:
org.ow2.util.event.api.IEventListener

public class TenantEventListener
extends Object
implements org.ow2.util.event.api.IEventListener

Handle events

Author:
Mohammed Boukada

Constructor Summary
TenantEventListener(String separator)
          Constructor
 
Method Summary
 boolean accept(org.ow2.util.event.api.IEvent event)
          Check whether the listener wants to handle this event.
 org.ow2.util.event.api.EventPriority getPriority()
          Get the listener priority.
 void handle(org.ow2.util.event.api.IEvent event)
          Handle the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TenantEventListener

public TenantEventListener(String separator)
Constructor

Parameters:
separator -
Method Detail

handle

public void handle(org.ow2.util.event.api.IEvent event)
Handle the event.

Specified by:
handle in interface org.ow2.util.event.api.IEventListener
Parameters:
event - The event to handle.

accept

public boolean accept(org.ow2.util.event.api.IEvent event)
Check whether the listener wants to handle this event.

Specified by:
accept in interface org.ow2.util.event.api.IEventListener
Parameters:
event - The event to check.
Returns:
True if the listener wants to handle this event, false otherwise.

getPriority

public org.ow2.util.event.api.EventPriority getPriority()
Get the listener priority.

Specified by:
getPriority in interface org.ow2.util.event.api.IEventListener
Returns:
The listener priority.


Copyright © 2012 OW2 Consortium. All Rights Reserved.