Package com.ibm.wsspi.adaptable.module
Class DefaultNotification
java.lang.Object
com.ibm.wsspi.adaptable.module.DefaultNotification
- All Implemented Interfaces:
Notifier.Notification
Default implementation of the
Notifier.Notification
interface.-
Constructor Summary
ConstructorDescriptionDefaultNotification
(Container root, String path) Constructs a Notification object for a single path (will be converted to a singleton collection)DefaultNotification
(Container root, Collection<String> paths) Constructs a Notification object -
Method Summary
-
Constructor Details
-
DefaultNotification
Constructs a Notification object for a single path (will be converted to a singleton collection)Path must be absolute, and the container passed must be from the notifier the notification is used for.
Path may be prefixed with '!' to mean 'non recursive' eg.
- /WEB-INF (the /WEB-INF directory, and all files/dirs beneath it recursively.)
- / (all files/dirs in the entire container)
- !/META-INF (the /META-INF directory and its immediate children)
- !/ (the container itself, and entries directly on its root.)
- Parameters:
root
-path
-
-
DefaultNotification
Constructs a Notification objectPaths must be absolute, and the container passed must be from the notifier the notification is used for.
Paths may be prefixed with '!' to mean 'non recursive' eg.
- /WEB-INF (the /WEB-INF directory, and all files/dirs beneath it recursively.)
- / (all files/dirs in the entire container)
- !/META-INF (the /META-INF directory and its immediate children)
- !/ (the container itself, and entries directly on its root.)
- Parameters:
root
- the container to check the paths against. Must not be null.paths
- the collection of paths to check. Must not be null.- Throws:
IllegalArgumentException
- if either argument is null.
-
-
Method Details
-
getContainer
- Specified by:
getContainer
in interfaceNotifier.Notification
- Returns:
- the associated container
-
getPaths
- Specified by:
getPaths
in interfaceNotifier.Notification
- Returns:
- the paths
-
toString
-