コード例 #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);
 }