Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.jci.listeners
Class ReloadingListener

    java.lang.Object
      org.apache.commons.jci.listeners.AbstractFilesystemAlterationListener
          org.apache.commons.jci.listeners.ReloadingListener

All Implemented Interfaces:
  FilesystemAlterationListener

Direct Known Subclasses:
  CompilingListener

    public class ReloadingListener

extends AbstractFilesystemAlterationListener

This Listener waits for FAM events to trigger a reload of classes or resources.

Author:
  tcurdt

Field Summary

Fields inherited from class org.apache.commons.jci.listeners.AbstractFilesystemAlterationListener
`observer`

Constructor Summary
`ReloadingListener()`
`ReloadingListener(ResourceStore pStore)`

Method Summary
`void` | `addReloadNotificationListener(ReloadNotificationListener pNotificationListener)`
`ResourceStore` | `getStore()`
`boolean` | `isReloadRequired(FilesystemAlterationObserver pObserver)`
`void` | `onDirectoryChange(File pDir)`
`void` | `onDirectoryCreate(File pDir)`
`void` | `onDirectoryDelete(File pDir)`
`void` | `onStop(FilesystemAlterationObserver pObserver)`

Methods inherited from class org.apache.commons.jci.listeners.AbstractFilesystemAlterationListener
`getChangedDirectories, getChangedFiles, getCreatedDirectories, getCreatedFiles, getDeletedDirectories, getDeletedFiles, onFileChange, onFileCreate, onFileDelete, onStart, signals, waitForCheck, waitForEvent, waitForFirstCheck`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ReloadingListener

    public ReloadingListener()

### ReloadingListener

    public ReloadingListener(ResourceStore pStore)

Method Detail

### getStore

    public ResourceStore getStore()

### addReloadNotificationListener

    public void addReloadNotificationListener(ReloadNotificationListener pNotificationListener)

### isReloadRequired

    public boolean isReloadRequired(FilesystemAlterationObserver pObserver)

### onStop

    public void onStop(FilesystemAlterationObserver pObserver)

  Specified by:
    `onStop` in interface `FilesystemAlterationListener`
  Overrides:
    `onStop` in class `AbstractFilesystemAlterationListener`

### onDirectoryCreate

    public void onDirectoryCreate(File pDir)

  Specified by:
    `onDirectoryCreate` in interface `FilesystemAlterationListener`
  Overrides:
    `onDirectoryCreate` in class `AbstractFilesystemAlterationListener`

### onDirectoryChange

    public void onDirectoryChange(File pDir)

  Specified by:
    `onDirectoryChange` in interface `FilesystemAlterationListener`
  Overrides:
    `onDirectoryChange` in class `AbstractFilesystemAlterationListener`

### onDirectoryDelete

    public void onDirectoryDelete(File pDir)

  Specified by:
    `onDirectoryDelete` in interface `FilesystemAlterationListener`
  Overrides:
    `onDirectoryDelete` in class `AbstractFilesystemAlterationListener`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.