org.apache.commons.jci.listeners
Class NotifyingListener

java.lang.Object
  extended byorg.apache.commons.jci.listeners.NotifyingListener
All Implemented Interfaces:
FilesystemAlterationListener
Direct Known Subclasses:
FileChangeListener, ResourceStoringListener

public abstract class NotifyingListener
extends java.lang.Object
implements FilesystemAlterationListener


Nested Class Summary
static class NotifyingListener.Signal
           
 
Field Summary
protected  NotificationListener notificationListener
           
protected  java.io.File repository
           
 
Constructor Summary
NotifyingListener(java.io.File pRepository)
           
 
Method Summary
protected  void checked(boolean pNotify)
           
 java.io.File getRepository()
           
 void setNotificationListener(NotificationListener pNotificationListener)
           
 void waitForCheck()
           
 void waitForFirstCheck()
           
 void waitForNotification()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.jci.monitor.FilesystemAlterationListener
onChangeDirectory, onChangeFile, onCreateDirectory, onCreateFile, onDeleteDirectory, onDeleteFile, onStart, onStop
 

Field Detail

repository

protected final java.io.File repository

notificationListener

protected NotificationListener notificationListener
Constructor Detail

NotifyingListener

public NotifyingListener(java.io.File pRepository)
Method Detail

getRepository

public java.io.File getRepository()
Specified by:
getRepository in interface FilesystemAlterationListener

setNotificationListener

public void setNotificationListener(NotificationListener pNotificationListener)

checked

protected void checked(boolean pNotify)

waitForNotification

public void waitForNotification()
                         throws java.lang.Exception
Throws:
java.lang.Exception

waitForFirstCheck

public void waitForFirstCheck()
                       throws java.lang.Exception
Throws:
java.lang.Exception

waitForCheck

public void waitForCheck()
                  throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.