How do you define an annotation in Spring that is semantically equivalent to @Bean
, but has another name?
(Why? I'm building a DSL in which the functionality would fit, but it would greatly benefit from naming the annotation more closely to the role it plays in the library).