how to implement something like this:
@MySpringAnnotation(MyEnum.values())
public class Bean {
}
and after context initialization I will see for example 5 singletons beans quilified by enum? I prefer to use Java-based annotation and don't know how to implement multiple context, where configuration classes very similar to each other except the "scope". May there can be some proper way to do that.
It can be implemented using custom scope. Create all objects of this scope while initialization and use it in proper way at runtime wiring of beans.