[
http://jira.andromda.org/jira/browse/SPRING-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Plushnikov Michail closed SPRING-63.
------------------------------------
Resolution: Fixed
Fix Version/s: 3.4-SNAPSHOT
Assignee: Plushnikov Michail (was: Chad Brandon)
Add using of "PostConstruct" and "PreDestroy" stereotypes on operations of
SpringServices to generate init and destroy methods mapping
> Create 2 tagged values for Spring bean init and destroy methods
> ---------------------------------------------------------------
>
> Key: SPRING-63
> URL: http://jira.andromda.org/jira/browse/SPRING-63
> Project: Spring Cartridge
> Issue Type: New Feature
> Reporter: Sebastien Arbogast
> Assignee: Plushnikov Michail
> Fix For: 3.4-SNAPSHOT
>
>
> For the moment there is no way to specify init and/or destroy methods for
> Spring service beans, which could be very interesting to initialize data on
> application start up for example.
> The solution would be to add 2 tagged values, @andromda.spring.init-method
> and @andromda.spring.destroy-method, applicable on service-stereotyped
> methods, with a boolean value (default false).
> This way for example I could have a "<<Service>>Shop" service, with a
> "+open():[email protected]=true" method, which would be
> translated into a declaration like this in applicationContext.xml :
> <bean id="shop" class="..." init-method="open">...</bean>
> And of course when the corresponding tagged value is false, no parameter
> would be added to the bean declaration.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.andromda.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev