|
|
|
@ -239,7 +239,7 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC |
|
|
|
try { |
|
|
|
try { |
|
|
|
this.includeFilters.add(new AnnotationTypeFilter( |
|
|
|
this.includeFilters.add(new AnnotationTypeFilter( |
|
|
|
((Class<? extends Annotation>) cl.loadClass("javax.annotation.ManagedBean")), false)); |
|
|
|
((Class<? extends Annotation>) cl.loadClass("javax.annotation.ManagedBean")), false)); |
|
|
|
logger.info("JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning"); |
|
|
|
logger.debug("JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning"); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (ClassNotFoundException ex) { |
|
|
|
catch (ClassNotFoundException ex) { |
|
|
|
// JSR-250 1.1 API (as included in Java EE 6) not available - simply skip.
|
|
|
|
// JSR-250 1.1 API (as included in Java EE 6) not available - simply skip.
|
|
|
|
@ -247,7 +247,7 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC |
|
|
|
try { |
|
|
|
try { |
|
|
|
this.includeFilters.add(new AnnotationTypeFilter( |
|
|
|
this.includeFilters.add(new AnnotationTypeFilter( |
|
|
|
((Class<? extends Annotation>) cl.loadClass("javax.inject.Named")), false)); |
|
|
|
((Class<? extends Annotation>) cl.loadClass("javax.inject.Named")), false)); |
|
|
|
logger.info("JSR-330 'javax.inject.Named' annotation found and supported for component scanning"); |
|
|
|
logger.debug("JSR-330 'javax.inject.Named' annotation found and supported for component scanning"); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (ClassNotFoundException ex) { |
|
|
|
catch (ClassNotFoundException ex) { |
|
|
|
// JSR-330 API not available - simply skip.
|
|
|
|
// JSR-330 API not available - simply skip.
|
|
|
|
|