com.ibm.wsspi.adaptable.module
Class DefaultNotification

java.lang.Object
  extended by com.ibm.wsspi.adaptable.module.DefaultNotification
All Implemented Interfaces:
Notifier.Notification

public class DefaultNotification
extends java.lang.Object
implements Notifier.Notification

Default implementation of the Notifier.Notification interface.


Constructor Summary
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
 Container getContainer()
           
 java.util.Collection<java.lang.String> getPaths()
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultNotification

public DefaultNotification(Container root,
                           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.

Parameters:
root -
path -

DefaultNotification

public DefaultNotification(Container root,
                           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.

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

public Container getContainer()
Specified by:
getContainer in interface Notifier.Notification
Returns:
the associated container

getPaths

public java.util.Collection<java.lang.String> getPaths()
Specified by:
getPaths in interface Notifier.Notification
Returns:
the paths

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object