Class CloseEvent

All Implemented Interfaces:
Serializable, Localized

public class CloseEvent extends CascadedStoreEvent<CloseEvent>
Notifies listeners that a resource or a data store is being closed and should no longer be used. Firing a Close­Event on a parent resource (typically a data store) automatically fires a Close­Event in all children resources. See Cascaded­Store­Event javadoc for more information.
Since:
1.3
See Also:
  • Constructor Details

    • CloseEvent

      public CloseEvent(Resource source)
      Constructs an event for a resource that has been closed.
      Parameters:
      source - the resource which has been closed.
      Throws:
      Illegal­Argument­Exception - if the given source is null.
  • Method Details

    • forSource

      protected CloseEvent forSource(Resource child)
      Creates a new event of the same type than this event but with a different source.
      Specified by:
      for­Source in class Cascaded­Store­Event<Close­Event>
      Parameters:
      child - the child resource for which to create the event to cascade.
      Returns:
      an event of the same type than this event but with the given resource.