Interface ResourceNotification


public interface ResourceNotification
A resource notification is related to a change in the state of a resource. It is sent to all resource observers when appropriate. The notification contains the type of change and access to the resource information. This includes:
  • A resource has been opened
  • A resource has been closed
  • A resource has been prepared
  • A resource property has been changed
  • A resource is being disposed
  • A resource is being opened
  • A resource is being closed
Author:
jmvivo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    A resource property has been changed
    static final String
    A resource is being closed
    static final String
    A resource has been closed
    static final String
    A resource is being disposed
    static final String
    A resource is being opened
    static final String
    A resource has been opened
    static final String
    A resource has been prepared
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the parameters of the resource that caused this notification.
    Returns the resource that caused this notification.
    Returns the type of this notification.
  • Field Details

  • Method Details

    • getParameters

      ResourceParameters getParameters()
      Returns the parameters of the resource that caused this notification.
      Returns:
      the parameters of this notification's source
    • getResource

      Resource getResource()
      Returns the resource that caused this notification.
      Returns:
      this notification's source
    • getType

      String getType()
      Returns the type of this notification.
      Returns:
      this notification's type. For the allowed values see the constants defined in this interface.