Announcement Announcement Module
No announcement yet.
bean naming stratergy using java config Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • bean naming stratergy using java config

    Is it possible to create bean names dynamically? I have a query that would return me a list of names that I want to give the beans

    for example...
    public class SomeConfig
    @Bean public MyResource someresource()
    return new someresourceimpl();


    can the name of the bean "someresource" be made dynamic based on some criteria?
    Is there a custom bean naming stratergy? Can anyone share some sample code?