5 Replies Latest reply on Nov 12, 2007 10:39 AM by alesj

    Finalize 2.0.0 api

    starksm64

      We need a review of the mc apis to finalize these for the 2.0.0.CR1 release.
      Still some obsolete api that should be dropped, for example the DeploymentUnit.getTypes call.

      http://jira.jboss.com/jira/browse/JBMICROCONT-216

      Let's do a review and get the old stuff out.

        • 1. Re: Finalize 2.0.0 api
          alesj

           

          "scott.stark@jboss.org" wrote:
          http://jira.jboss.com/jira/browse/JBMICROCONT-216

          As you could see, I closed this one, since it's a duplicate of http://jira.jboss.com/jira/browse/JBMICROCONT-215.

          "scott.stark@jboss.org" wrote:
          Let's do a review and get the old stuff out.

          How do we spot the old stuff? :-)

          • 2. Re: Finalize 2.0.0 api
            starksm64

            Ok. Just need to go through the spis, current issues to see if there are other out of date/should not exist spis.

            • 3. Re: Finalize 2.0.0 api
              alesj

              Looking at the MainDeployer for JBMICROCONT-187 issue, I see that this

               /** Deployments missing deployers */
               private Map<String, DeploymentContext> missingDeployers = new ConcurrentHashMap<String, DeploymentContext>();
              

              has no usage + no right place to populate it.

              What was the usage of this?
              Matching structural deployers?

              Since with the real aspectized deployers, I don't see how you can determine if the deployment unit hasn't been 'touched', other than comparing the attachments snapshots before and after the deploy.

              • 4. Re: Finalize 2.0.0 api
                alesj

                 

                "alesj" wrote:

                What was the usage of this?
                Matching structural deployers?

                I guess it was this.

                But then the Map's values shouldn't be DeploymentContexts, since you only get the DC ref if there is some matching StructureDeployer.

                Changing it to Deployment. ;-)


                • 5. Re: Finalize 2.0.0 api
                  alesj

                  The reason this is here - in 'finalize api' - is that this triggers change to Deployers class.

                   * @param missingDeployer the deployments missing a deployer
                   * @throws DeploymentException when some deployment is not complete
                   */
                  - void checkComplete(Collection<DeploymentContext> errors, Collection<DeploymentContext> missingDeployer) throws DeploymentException;
                  + void checkComplete(Collection<DeploymentContext> errors, Collection<Deployment> missingDeployer) throws DeploymentException;