Announcement Announcement Module

JavaConfig forum decommissioned in favor of Core Container

As described at

key features of the Spring JavaConfig project have been migrated into the core Spring Framework as of version 3.0.

Please see the Spring 3.0 documentation on @Configuration and @Bean support:

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at
See more
See less
Annotation for "factory-method=" xml ? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Annotation for "factory-method=" xml ?

    hello.. simple question but i cannot seem the find any answer online/onforums..

    What or is there an annotation for "

    <bean id="SomeEnumClass" class="com.blah.SomeEnumClass" factory-method="valueOf">

    I would like to replace this xml fragment with in code annotation if possible.. The above fragment works fine

    p.s. not sure if this is the right forum - mods please move to more appropriate thread if necessary