in jpa-blueprint/src/main/java/org/apache/aries/jpa/blueprint/impl/AnnotationScanner.java [38:51]
private static void parseClass(Class<? extends Annotation> annotation, final List<AccessibleObject> jpaAnnotated, Class<?> cl) {
for (Field field : cl.getDeclaredFields()) {
if (field.isAnnotationPresent(annotation)) {
field.setAccessible(true);
jpaAnnotated.add(field);
}
}
for (Method method : cl.getDeclaredMethods()) {
if ((method.isAnnotationPresent(annotation)) && method.getName().startsWith("set") && method.getParameterTypes().length == 1) {
jpaAnnotated.add(method);
}
}
}