Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-596

add throws DeploymentException to getServices() in AbstractXBeanDeployer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.1
    • servicemix-common
    • None

    Description

      I have a binding component that may create multiple endpoint starting from a
      single service unit. I use the AbstractXBeanDeployer to ease the reading of the
      service unit configuration.
      The number of endpoint is determined in the getServices method which can be
      overridden. The problem is that my getServices method is quite complicated and
      the code inside it may rise differnt type of exception wich I can't handel and
      which should make the deployment fail. To resolve the problem it would be
      enough to change the method signatire from
      protected List getServices(Kernel kernel)
      to
      protected List getServices(Kernel kernel) throws DeploymentException

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            raffaelespazzoli Raffaele Spazzoli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: