org.exoplatform.social.client.api.event
Class LifecycleEvent<M,L>

java.lang.Object
  extended by org.exoplatform.social.client.api.event.Event
      extended by org.exoplatform.social.client.api.event.LifecycleEvent<M,L>

public class LifecycleEvent<M,L>
extends Event

General event for notifying listeners of significant changes on a component that implements the Lifecycle interface.

Author:
thanh_vucong

Constructor Summary
LifecycleEvent(Lifecycle<M,L> source, String type)
          Construct a new LifecycleEvent with the specified parameters.
LifecycleEvent(Lifecycle<M,L> source, String type, L data)
          Construct a new LifecycleEvent with the specified parameters.
 
Method Summary
 L getData()
          Return the event data of this event.
 Lifecycle<M,L> getSource()
          Return the Lifecycle on which this event occurred.
 String getType()
          Return the event type of this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifecycleEvent

public LifecycleEvent(Lifecycle<M,L> source,
                      String type)
Construct a new LifecycleEvent with the specified parameters.

Parameters:
source - Component on which this event occurred
type - Event type (required)

LifecycleEvent

public LifecycleEvent(Lifecycle<M,L> source,
                      String type,
                      L data)
Construct a new LifecycleEvent with the specified parameters.

Parameters:
source - Component on which this event occurred
type - Event type (required)
data - Event data (if any)
Method Detail

getType

public String getType()
Return the event type of this event.

Returns:

getData

public L getData()
Return the event data of this event.

Returns:

getSource

public Lifecycle<M,L> getSource()
Return the Lifecycle on which this event occurred.

Returns:


Copyright © 2011-2012 eXo Platform. All Rights Reserved.