I am using the reflections package to scan some files in my classpath. The code below is run at regular intervals. Basically i am retriving all xml files within a folder 'tmp' in the classpath. This code is being run from a web application.
Reflections reflections = new Reflections("tmp", new ResourcesScanner());
Set<String> xmls = reflections.getResources(Pattern.compile(".*\\.xml"));
When i add another xml file in the services folder it gets read. However, when i update any of those xml files, the update is NOT reflected. Is there some kind of caching going on there? If yes, is there anyway to avoid the same?