Closed GoogleCodeExporter closed 8 years ago
The code :
Vfs.addDefaultURLTypes(new VfsUrlType());
final Reflections reflections = new Reflections(
new ConfigurationBuilder()
.filterInputsBy(
new FilterBuilder().include(FilterBuilder
.prefix(packageName)))
.setUrls(ClasspathHelper.forPackage(packageName))
.setScanners(new SubTypesScanner(false),
new TypeAnnotationsScanner(),
new ResourcesScanner()));
return reflections;
Original comment by david.ca...@gmail.com
on 7 Jan 2014 at 9:31
This is not clear.
Are you calling Vfs.addDefaultURLTypes from multiple threads in the same VM,
while scan is ongoing?
Are you trying to do a single parallel scan?
org.reflections.vfs.Vfs#defaultUrlTypes should not be changing when scan is
happening.
Original comment by ronm...@gmail.com
on 7 Jan 2014 at 10:22
There is 2 parrallels EJB calls, calling the code a million times each, working
in the same VM (JBoss AS 7.2).
Original comment by david.ca...@gmail.com
on 7 Jan 2014 at 2:10
there you go. scan once, query anywhere.
Original comment by ronm...@gmail.com
on 7 Jan 2014 at 2:16
I cannot scan once beacause "packageName" is a variable.
Original comment by david.ca...@gmail.com
on 7 Jan 2014 at 5:24
Original issue reported on code.google.com by
david.ca...@gmail.com
on 7 Jan 2014 at 9:29