All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jakarta.enterprise.inject.build.compatible.spi.AnnotationBuilderFactory Maven / Gradle / Ivy

There is a newer version: 4.1.0
Show newest version
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 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