
org.unidal.eunit.testfwk.spi.IMetaAnnotationHandler Maven / Gradle / Ivy
package org.unidal.eunit.testfwk.spi;
import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;
public interface IMetaAnnotationHandler {
/**
* What's the annotation to be handled.
*
* @return Annotation type
*/
public Class getTargetAnnotation();
/**
* To handle annotation and construct EUnit model or customized model.
*
*
* This method will be called twice with after set to 'false' and 'true'.
*
* @param ctx
* Class context
* @param annotation
* annotation instance to be handled
* @param meta
* meta annotation instance to be handled
* @param target
* where the annotation be used
* @param after
* Whether this handler should be triggered after the body or
* before the body.
*/
public void handle(IClassContext ctx, Annotation annotation, T meta, S target, boolean after);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy