Package org.hibernate.models.internal
Class AnnotationDescriptorRegistryImmutable
java.lang.Object
org.hibernate.models.internal.AbstractAnnotationDescriptorRegistry
org.hibernate.models.internal.AnnotationDescriptorRegistryImmutable
- All Implemented Interfaces:
AnnotationDescriptorRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.models.spi.AnnotationDescriptorRegistry
AnnotationDescriptorRegistry.DescriptorCreator<A extends Annotation> -
Field Summary
Fields inherited from class org.hibernate.models.internal.AbstractAnnotationDescriptorRegistry
descriptorMap, repeatableByContainerMap -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationDescriptorRegistryImmutable(Map<Class<? extends Annotation>, AnnotationDescriptor<?>> descriptorMap, Map<AnnotationDescriptor<?>, AnnotationDescriptor<?>> repeatableByContainerMap) -
Method Summary
Modifier and TypeMethodDescription<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.Methods inherited from class org.hibernate.models.internal.AbstractAnnotationDescriptorRegistry
getContainedRepeatableDescriptor, getContainedRepeatableDescriptor
-
Constructor Details
-
AnnotationDescriptorRegistryImmutable
public AnnotationDescriptorRegistryImmutable(Map<Class<? extends Annotation>, AnnotationDescriptor<?>> descriptorMap, Map<AnnotationDescriptor<?>, AnnotationDescriptor<?>> repeatableByContainerMap)
-
-
Method Details
-
getDescriptor
Description copied from interface:AnnotationDescriptorRegistryGet the descriptor for the given annotationtype, creating one if needed. -
resolveDescriptor
public <A extends Annotation> AnnotationDescriptor<A> resolveDescriptor(Class<A> javaType, AnnotationDescriptorRegistry.DescriptorCreator<A> creator) Description copied from interface:AnnotationDescriptorRegistryGet the descriptor for the given annotationtype, creating one via the creator if needed. -
makeImmutableCopy
-