Announcement Announcement Module
Collapse

JavaConfig forum decommissioned in favor of Core Container

As described at

http://static.springsource.org/sprin...fig/README.TXT

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:

http://static.springsource.org/sprin...tml#beans-java

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at

http://forum.springsource.org/forumdisplay.php?f=26
See more
See less
Annotation for "factory-method=" xml ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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">
    <constructor-arg>
    <value>INSTANCE</value>
    </constructor-arg>
    </bean>

    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
Working...
X