Package org.hibernate.models.spi
Interface AnnotationDescriptorRegistry
- All Known Subinterfaces:
MutableAnnotationDescriptorRegistry
- All Known Implementing Classes:
AbstractAnnotationDescriptorRegistry,AnnotationDescriptorRegistryStandard
public interface AnnotationDescriptorRegistry
Registry of descriptors for all known annotations
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
AnnotationDescriptor<A> getContainedRepeatableDescriptor(Class<A> javaType) Shorthand forgetRepeatableDescriptor( getDescriptor( javaType ) )<A extends Annotation>
AnnotationDescriptor<A> getContainedRepeatableDescriptor(AnnotationDescriptor<A> descriptor) Assuming thedescriptoris a repeatable container, return the descriptor of the annotation for which it acts as a container.<A extends Annotation>
AnnotationDescriptor<A> getDescriptor(Class<A> javaType) Get the descriptor for the given annotationtype, creating one if needed.<A extends Annotation>
AnnotationDescriptor<A> resolveDescriptor(Class<A> javaType, AnnotationDescriptorRegistry.DescriptorCreator<A> creator) Get the descriptor for the given annotationtype, creating one via the creator if needed.
-
Method Details
-
getDescriptor
Get the descriptor for the given annotationtype, creating one if needed. -
resolveDescriptor
<A extends Annotation> AnnotationDescriptor<A> resolveDescriptor(Class<A> javaType, AnnotationDescriptorRegistry.DescriptorCreator<A> creator) Get the descriptor for the given annotationtype, creating one via the creator if needed. -
getContainedRepeatableDescriptor
<A extends Annotation> AnnotationDescriptor<A> getContainedRepeatableDescriptor(AnnotationDescriptor<A> descriptor) Assuming thedescriptoris a repeatable container, return the descriptor of the annotation for which it acts as a container. -
getContainedRepeatableDescriptor
Shorthand forgetRepeatableDescriptor( getDescriptor( javaType ) )
-