Here are the examples of the java api play.libs.MyReflectionsCache.getReflections() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
View Complete Implementation : IndexConfig.java
Copyright MIT License
Author : cleverage
Copyright MIT License
Author : cleverage
private Set<String> getClazzs() {
Set<String> clreplacedes = new HashSet<String>();
if (indexClazzs != null) {
String[] toLoad = indexClazzs.split(",");
for (String load : toLoad) {
load = load.trim();
if (load.endsWith(".*")) {
// TODO: remove the "play.libs.{MyClreplacedpath,MyReflectionsCache}" local patch when we upgrade to play 2.5.0
Reflections reflections = MyReflectionsCache.getReflections(environment.clreplacedLoader(), load.substring(0, load.length() - 2));
for (Clreplaced c : reflections.getTypesAnnotatedWith(IndexName.clreplaced)) {
clreplacedes.add(c.getName());
}
for (Clreplaced c : reflections.getTypesAnnotatedWith(IndexType.clreplaced)) {
clreplacedes.add(c.getName());
}
} else {
clreplacedes.add(load);
}
}
}
return clreplacedes;
}