jakarta.enterprise.inject.build.compatible.spi.AnnotationBuilderFactory Maven / Gradle / Ivy
package jakarta.enterprise.inject.build.compatible.spi;
import jakarta.enterprise.lang.model.declarations.ClassInfo;
import java.lang.annotation.Annotation;
/**
* Supports instantiating {@link AnnotationBuilder}.
* Should not be called directly by users; the static methods on {@link AnnotationBuilder} are preferred.
*
* @since 4.0
*/
public interface AnnotationBuilderFactory {
/**
* Returns a new {@link AnnotationBuilder} for given annotation type.
*
* @param annotationType the annotation type
* @return a new {@link AnnotationBuilder}
*/
AnnotationBuilder create(Class extends Annotation> annotationType);
/**
* Returns a new {@link AnnotationBuilder} for given annotation type.
*
* @param annotationType the annotation type
* @return a new {@link AnnotationBuilder}
*/
AnnotationBuilder create(ClassInfo annotationType);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy