I am trying to watch a folder tree for new files, and it seems like WatchServiceDirectoryScanner is exactly what I need, but I can't get the configuration to start without a locker without throwing a BeanCreationException. How do I tell it I don't want a locker?
<bean id="myScanner" class="org.springframework.integration.file.WatchServiceDirectoryScanner">
<constructor-arg value="/my/path"/>
<property name="filter" ref="onceFilter"/>
<property name="locker"><null/></property>
</bean>
<bean id="onceFilter" class="org.springframework.integration.file.filters.AcceptOnceFileListFilter"/>
I don't want to lock files. Do I really need to implement a custom NonLockingLocker?