Annotation @Indexed does not work in enumerations
Affects: 5.2.15-RELEASE
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Indexed
public @interface Dict {
}
@Dict
public enum MyDict{
}
Comment From: snicoll
@zhou-hao what are you trying to achieve? The context indexer is meant for beans candidate or infrastructure that we would need to scan. An enum does not fall in this category so that is to be expected that it isn't scanned.
Comment From: zhou-hao
I wan't to use @Indexed to implement custom type scanning.
Comment From: snicoll
Sorry but the context indexer is primarily targeted at the ApplicationContext
and there is no need for us to support Enums at this time. I am not keen to expand the scope of the scanning for something we don't need ourselves.