Add target and retention to `@JavaServiceLoadable`

This commit is contained in:
Steve Ebersole 2023-06-13 11:05:30 -05:00
parent 12639834f3
commit d16482697c
1 changed files with 9 additions and 0 deletions

View File

@ -6,6 +6,13 @@
*/
package org.hibernate.service;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Marker annotation identifying integration points which Hibernate supports loading as a
* {@linkplain java.util.ServiceLoader Java service}.
@ -14,5 +21,7 @@ package org.hibernate.service;
*
* @author Steve Ebersole
*/
@Target({TYPE,ANNOTATION_TYPE})
@Retention(RUNTIME)
public @interface JavaServiceLoadable {
}