com.ibm.wsspi.artifact
Class DefaultArtifactNotification

java.lang.Object
  extended by com.ibm.wsspi.artifact.DefaultArtifactNotification
All Implemented Interfaces:
ArtifactNotifier.ArtifactNotification

public class DefaultArtifactNotification
extends java.lang.Object
implements ArtifactNotifier.ArtifactNotification

Default implementation of the ArtifactNotifier.ArtifactNotification interface


Constructor Summary
DefaultArtifactNotification(ArtifactContainer root, java.util.Collection<java.lang.String> paths)
          Constructs an ArtifactNotification.
 
Method Summary
 ArtifactContainer getContainer()
           
 java.util.Collection<java.lang.String> getPaths()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultArtifactNotification

public DefaultArtifactNotification(ArtifactContainer root,
                                   java.util.Collection<java.lang.String> paths)
Constructs an ArtifactNotification.

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 ArtifactContainer getContainer()
Specified by:
getContainer in interface ArtifactNotifier.ArtifactNotification
Returns:
the associated container

getPaths

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