* @param loader
* @return
*/
public static Class getProxyClass(final String annotationName, final ClassLoader loader) {
Class proxyClass;
AsmClassInfoRepository classInfoRepository = AsmClassInfoRepository.getRepository(loader);
String proxyClassName = (String) classInfoRepository.getAnnotationProperties().get(annotationName);
if (proxyClassName == null) {
return null;
}
if (proxyClassName.equals("")) {
throw new DefinitionException("untyped annotations can not be used with Java5 annotations");