[ http://jira.andromda.org/browse/SPRING-63?page=comments#action_11599 ]
     
Sebastien Arbogast commented on SPRING-63:
------------------------------------------

Sorry I made a mistake my problem didn't come from there as I already use 
jdbcDataSourceDestroyMethod.
But I still think this would be useful to be able to specify destroy and init 
methods on any bean

> Create 2 tagged values for Spring bean init and destroy methods
> ---------------------------------------------------------------
>
>          Key: SPRING-63
>          URL: http://jira.andromda.org/browse/SPRING-63
>      Project: Spring Cartridge
>         Type: New Feature
>     Reporter: Sebastien Arbogast
>     Assignee: Chad Brandon

>
> 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]" 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/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to