3 Replies Latest reply on Jul 30, 2009 4:36 PM by pmuir

    Question about deployment type resolution

    nix

      From the spec :



      A bean class or producer method or field may specify at most one deployment type.

      Deployment type can be declared explicitly for bean type.
      It can be also inherited from parent.
      But deployment type can present in stereotype declared for bean.
      There can be several stereotypes for bean.
      And stereotypes can be also inherited.
      So what is the resolution algorithm for deployment type
      for various cases ?
      Is it correct that several declared stereotypes with different deployment
      types are error ?
      Suppose bean has deployment type declared ( directly or via stereotype ) and
      his parent also has  inherited deployment type.
      What is correct :



      1. bean has its deployment type

      2. error .

        • 1. Re: Question about deployment type resolution
          nickarls

          Deployment types are so June ;-)


          (as I recall, the sterotypes are merged and fine as long as all the deployment types are the same)

          • 2. Re: Question about deployment type resolution
            nix

            So having several stereotypes with different deployment types are error ?
            It looks logical.


            But what is about deployment type and stereotype inheritance ?
            Suppose parent has inherited deployment type declaration and his child has deployment type
            declaration . Is it error or explicit deployment type declaration for child has precedence
            and there is no error ?
            The same question is for stereotypes in context of deployment type and mix stereotype/deployment type.

            • 3. Re: Question about deployment type resolution
              pmuir

              Deployment types are removed in the latest spec rev, so I would not develop support for them. They are replaced by alternatives/policies. Please email me if you need a copy of the latest spec.