se.citerus.dddsample.interfaces.handling.file
Class UploadDirectoryScanner
java.lang.Object
java.util.TimerTask
se.citerus.dddsample.interfaces.handling.file.UploadDirectoryScanner
- All Implemented Interfaces:
- java.lang.Runnable, org.springframework.beans.factory.InitializingBean
public class UploadDirectoryScanner
- extends java.util.TimerTask
- implements org.springframework.beans.factory.InitializingBean
Periodically scans a certain directory for files and attempts
to parse handling event registrations from the contents.
Files that fail to parse are moved into a separate directory,
succesful files are deleted.
Methods inherited from class java.util.TimerTask |
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UploadDirectoryScanner
public UploadDirectoryScanner()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
- Specified by:
run
in class java.util.TimerTask
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
setUploadDirectory
public void setUploadDirectory(java.io.File uploadDirectory)
setParseFailureDirectory
public void setParseFailureDirectory(java.io.File parseFailureDirectory)
setApplicationEvents
public void setApplicationEvents(ApplicationEvents applicationEvents)
Copyright © 2009. All Rights Reserved.