com.ibm.wsspi.adaptable.module

Class DefaultNotification

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.adaptable.module.DefaultNotification
All implemented interfaces:
Notifier.Notification

  1. public class DefaultNotification
  2. extends java.lang.Object
  3. implements Notifier.Notification
Default implementation of the Notifier.Notification interface.

Constructor Summary

Constructor and Description
DefaultNotification(Container root,java.util.Collection<java.lang.String> paths)
Constructs a Notification object
DefaultNotification(Container root,java.lang.String path)
Constructs a Notification object for a single path (will be converted to a singleton collection)

Method Summary

Modifier and Type Method and Description
  1. Container
getContainer()
  1. java.util.Collection<java.lang.String>
getPaths()
  1. java.lang.String
toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

DefaultNotification

  1. public DefaultNotification(Container root,
  2. java.lang.String path)
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

  1. public DefaultNotification(Container root,
  2. java.util.Collection<java.lang.String> paths)
Constructs a Notification object

Paths 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:
java.lang.IllegalArgumentException - if either argument is null.

Method Detail

getContainer

  1. public Container getContainer()
Specified by:
Returns:
the associated container

getPaths

  1. public java.util.Collection<java.lang.String> getPaths( )
Specified by:
Returns:
the paths

toString

  1. public java.lang.String toString( )
Overrides:
toString in class java.lang.Object