Пример #1
0
 public boolean isIndexed(Class<Object> clazz) {
   return getIndexedClasses().contains(clazz.getName());
 }
Пример #2
0
 private static URL packageRelativeResource(String resourceName, Class<?> clazz) {
   String directoryPrefix = '/' + clazz.getPackage().getName().replaceAll("\\.", "/") + '/';
   return clazz.getResource(directoryPrefix + resourceName);
 }