if (!dynamicBean) {
annotationFinder = createFinder(clazz);
finder = new AnnotationFinder(new ClassesArchive(clazz));
} else {
final Class<?>[] classes;
final Proxy proxy = metaClass.getAnnotation(Proxy.class);
if (proxy == null) {
classes = new Class<?>[] { clazz };
} else {
classes = new Class<?>[] { clazz, proxy.value() };
}
annotationFinder = createFinder(classes);
finder = new AnnotationFinder(new ClassesArchive(classes));
}
}