|
|
|
@ -149,8 +149,6 @@ public class CommonAnnotationBeanPostProcessor extends InitDestroyAnnotationBean |
|
|
|
private static final boolean jndiPresent = ClassUtils.isPresent( |
|
|
|
private static final boolean jndiPresent = ClassUtils.isPresent( |
|
|
|
"javax.naming.InitialContext", CommonAnnotationBeanPostProcessor.class.getClassLoader()); |
|
|
|
"javax.naming.InitialContext", CommonAnnotationBeanPostProcessor.class.getClassLoader()); |
|
|
|
|
|
|
|
|
|
|
|
private static final Set<Class<? extends Annotation>> resourceAnnotationTypes = CollectionUtils.newLinkedHashSet(3); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Nullable |
|
|
|
@Nullable |
|
|
|
private static final Class<? extends Annotation> jakartaResourceType; |
|
|
|
private static final Class<? extends Annotation> jakartaResourceType; |
|
|
|
|
|
|
|
|
|
|
|
@ -160,6 +158,8 @@ public class CommonAnnotationBeanPostProcessor extends InitDestroyAnnotationBean |
|
|
|
@Nullable |
|
|
|
@Nullable |
|
|
|
private static final Class<? extends Annotation> ejbAnnotationType; |
|
|
|
private static final Class<? extends Annotation> ejbAnnotationType; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final Set<Class<? extends Annotation>> resourceAnnotationTypes = CollectionUtils.newLinkedHashSet(3); |
|
|
|
|
|
|
|
|
|
|
|
static { |
|
|
|
static { |
|
|
|
jakartaResourceType = loadAnnotationType("jakarta.annotation.Resource"); |
|
|
|
jakartaResourceType = loadAnnotationType("jakarta.annotation.Resource"); |
|
|
|
if (jakartaResourceType != null) { |
|
|
|
if (jakartaResourceType != null) { |
|
|
|
|