Uploaded image for project: 'The AndroMDA project'
  1. The AndroMDA project
  2. ANDROMDA-417

Create 2 tagged values for Spring bean init and destroy methods

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4
    • Component/s: None
    • Labels:
      None

      Description

      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():void@andromda.spring.init-method=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.

        Attachments

          Activity

            People

            • Assignee:
              overheat Plushnikov Michail
              Reporter:
              sebastien Sebastien Arbogast
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: