Package org.hibernate.models.spi
Interface SharedAnnotationScope
- All Known Subinterfaces:
SharedNamedAnnotationScope,SourceModelBuildingContext
- All Known Implementing Classes:
SourceModelBuildingContextImpl
public interface SharedAnnotationScope
A scope for annotation usages. Differs from AnnotationTarget in that this
is a "registry" of usages that are shareable.
Generally speaking, this equates to global and package scope.
-
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
voidforEachAnnotationUsage(Class<A> annotationType, Consumer<AnnotationUsage<A>> consumer) default <A extends Annotation>
voidforEachAnnotationUsage(AnnotationDescriptor<A> annotationDescriptor, Consumer<AnnotationUsage<A>> consumer) <A extends Annotation>
List<AnnotationUsage<A>>getAllAnnotationUsages(Class<A> annotationType) default <A extends Annotation>
List<AnnotationUsage<A>>getAllAnnotationUsages(AnnotationDescriptor<A> annotationDescriptor)
-
Method Details
-
getAllAnnotationUsages
-
getAllAnnotationUsages
default <A extends Annotation> List<AnnotationUsage<A>> getAllAnnotationUsages(AnnotationDescriptor<A> annotationDescriptor) -
forEachAnnotationUsage
<A extends Annotation> void forEachAnnotationUsage(Class<A> annotationType, Consumer<AnnotationUsage<A>> consumer) -
forEachAnnotationUsage
default <A extends Annotation> void forEachAnnotationUsage(AnnotationDescriptor<A> annotationDescriptor, Consumer<AnnotationUsage<A>> consumer)
-