use of org.simpleflatmapper.util.ListCollector in project SimpleFlatMapper by arnaudroger.
the class ObjectClassMeta method getDefineProperties.
private Object[] getDefineProperties(AnnotatedElement annotatedElement) {
ListCollector<Object> properties = new ListCollector<Object>();
AnnotationToPropertyService annotationToPropertyService = AnnotationToPropertyUtil.getAnnotationToPropertyService();
for (Annotation annotation : annotatedElement.getAnnotations()) {
annotationToPropertyService.generateProperty(annotation, properties);
}
return properties.getList().toArray();
}
Aggregations