org.entityfs.event
Interface EntityObserver


public interface EntityObserver

This interface is implemented by a class that listens to an entity or a file system (an Observable) for updates. All objects that implement the EntityFS interface Observable can be observed. Which events an observable object sends differ from observable object to observable object.

Since:
1.0
Author:
Karl Gustafsson
See Also:
Observable, EntityEvent

Method Summary
 void update(EntityEvent<?> event)
          This callback method is called by the observed Observable when it sends an event.
 

Method Detail

update

void update(EntityEvent<?> event)
This callback method is called by the observed Observable when it sends an event. The method is called in the thread that generated the event, which has the following implications:

Parameters:
event - The event. It contains a reference to the affected entity.