package net.sf.esfinge.metadata.container.reading;

import static org.apache.commons.beanutils.PropertyUtils.setProperty;

import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Field;

import Test.annotations.FieldAnnoted;
import net.sf.esfinge.metadata.AnnotationReadingException;
import net.sf.esfinge.metadata.container.AnnotationReadingProcessor;
import net.sf.esfinge.metadata.container.ContainerTarget;

public class ReflectionReferenceReadingProcessor implements AnnotationReadingProcessor {
	
	private String containerAnnotatedField;
	private Field fieldAnn;

	@Override
	public void initAnnotation(Annotation an, AnnotatedElement elementWithMetadata) {
		fieldAnn = (Field) elementWithMetadata;
		containerAnnotatedField =  fieldAnn.getName();
	}

	@Override
	public void read(AnnotatedElement elementWithMetadata, Object container, ContainerTarget enumStr) throws AnnotationReadingException {
		try {
			setProperty(container, containerAnnotatedField,elementWithMetadata);
		
		} catch (Exception e) {
			throw new AnnotationReadingException("Cannot read and record the file "+elementWithMetadata+"in "+containerAnnotatedField,e);
		}
	}

}
@@ -244,47 +244,8 @@
 %0D%0A%0D%0A
-import Test.annotations.FieldAnnoted;%0D%0A
 impo

Update errors CI