Package org.gvsig.fmap.dal.resource
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
FieldsModifier and TypeFieldDescriptionstatic final StringA resource property has been changedstatic final StringA resource is being closedstatic final StringA resource has been closedstatic final StringA resource is being disposedstatic final StringA resource is being openedstatic final StringA resource has been openedstatic final StringA resource has been prepared -
Method Summary
Modifier and TypeMethodDescriptionReturns the parameters of the resource that caused this notification.Returns the resource that caused this notification.getType()Returns the type of this notification.
-
Field Details
-
OPENED
A resource has been opened- See Also:
-
CLOSED
A resource has been closed- See Also:
-
PREPARE
A resource has been prepared- See Also:
-
CHANGED
A resource property has been changed- See Also:
-
DISPOSE
A resource is being disposed- See Also:
-
OPEN
A resource is being opened- See Also:
-
CLOSE
A resource is being closed- See Also:
-
-
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.
-