Class DirectoryListener

All Implemented Interfaces:
FrankElement, HasApplicationContext, HasName, HasPhysicalDestination, IConfigurable, IHasProcessState<Path>, IListener<Path>, IProvidesMessageBrowsers<Path>, IPullingListener<Path>, IScopeProvider, NameAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Category(BASIC) public class DirectoryListener extends AbstractFileSystemListener<Path,LocalFileSystem>
Listener that looks for files in a LocalFileSystem. The DirectoryListener keeps track of the file process by storing it in different folders. The application may create the folders if you (a) set the root attribute and (b) set the attribute createFolders to true. The attribute messageType dictates what information of the file is passed to the pipeline. This may be the name, canonical path, the entire file, or the file's metadata.

Example usage:


 <DirectoryListener
        name="directoryListener"
        messageType="info"
        root="${rootdirectory}"
        inputFolder="in"
        inProcessFolder="inProcess"
        errorFolder="error"
        createFolders="true"
 />
 

  • Constructor Details

    • DirectoryListener

      public DirectoryListener()
  • Method Details