org.exoplatform.commons.api.event
Interface EventListener<S,D>

Type Parameters:
S - This is a generic object of source, it can be a File/Folder/Content or something else which should be extended from BaseObject.
D - This is a generic object of data. It can be an event type such as NODE_ADDED/PROPERTY_CHANGED/NODE_REMOVED

public interface EventListener<S,D>

This used to process all the dedicated work which be delegated from EventManager To adapt with event manager system then all listeners should be implemented this interface.


Method Summary
 void create(org.exoplatform.services.listener.Event<S,D> event)
          Process the dedicated work when the create event has been triggered.
 void remove(org.exoplatform.services.listener.Event<S,D> event)
          Process the dedicated work when the remove event has been triggered.
 void update(org.exoplatform.services.listener.Event<S,D> event)
          Process the dedicated work when the update event has been triggered.
 

Method Detail

create

void create(org.exoplatform.services.listener.Event<S,D> event)
Process the dedicated work when the create event has been triggered.

Parameters:
event - The Event object.

update

void update(org.exoplatform.services.listener.Event<S,D> event)
Process the dedicated work when the update event has been triggered.

Parameters:
event - The Event object.

remove

void remove(org.exoplatform.services.listener.Event<S,D> event)
Process the dedicated work when the remove event has been triggered.

Parameters:
event - The Event object.


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.