org.fishbolt.common.listener.ext
Class Event<S,T>

java.lang.Object
  extended by org.fishbolt.common.listener.ext.Event<S,T>
Type Parameters:
S - type of changed object.
T - type that describes that change
All Implemented Interfaces:
IEvent<S,T>

public class Event<S,T>
extends java.lang.Object
implements IEvent<S,T>

An event is being created by the system before notifying the listeners. The constructor of the class gets the object that is a source of the event as the first argument. The second parameter is a type of the event.


Constructor Summary
Event(S source, T type)
          Creates an instance of event
 
Method Summary
 S getSource()
          Changed object
 T getType()
          Type of the change
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event(S source,
             T type)
Creates an instance of event

Parameters:
source - is the changed object
type - that describes that change
Method Detail

getSource

public S getSource()
Description copied from interface: IEvent
Changed object

Specified by:
getSource in interface IEvent<S,T>
Returns:
changed object

getType

public T getType()
Description copied from interface: IEvent
Type of the change

Specified by:
getType in interface IEvent<S,T>
Returns:
type of the change