ANNOTATION_DEFINITION.load(in);
} catch (Exception e) {
String message = "custom annotation properties " + propertiesFile + " can not be loaded: " +
e.toString();
logWarning(message);
throw new DefinitionException(message);
} finally {
try {
in.close();
} catch (Exception e) {
;
}
}
}
for (Iterator it = ANNOTATION_DEFINITION.entrySet().iterator(); it.hasNext();) {
Map.Entry entry = (Map.Entry) it.next();
String name = ((String) entry.getKey()).trim();
String className = ((String) entry.getValue()).trim();
Class klass;
if (className.equals("")) {
// use default untyped annotation
klass = UntypedAnnotation.class;
className = klass.getName();
} else {
try {
klass = s_loader.loadClass(className);
} catch (ClassNotFoundException e) {
String message = className
+
" could not be found on system classpath or class path provided as argument to the compiler";
logError(message);
throw new DefinitionException(message);
}
}
logInfo("register custom annotation [" + name + " :: " + className + ']');
manager.registerAnnotationProxy(klass, name);
s_customAnnotations.put(name, className);