1 2 Previous Next 22 Replies Latest reply on Oct 28, 2010 11:30 AM by rmaucher Go to original post
      • 15. Re: metadata and AS7
        jfclere

        We spotted one place where the xsd makes it hard to get the minoccurs/maxoccurs but their may  be other locations.

        It will hard to generate code we can trust if we have to guess too much...

        • 16. Re: metadata and AS7
          jfclere

          With the generator we have 2 ServletType.java:

          ./org/jboss/beach/metadata/web/spec/ServletType.java
          ./org/jboss/beach/metadata/web/jboss/ServletType.java

          Of course the jboss should extend the spec one but there are no ways in schema to link those two... Any ideas?

          • 17. Re: metadata and AS7
            rmaucher

            With the generator model, I think it is natural to have two separate trees. It would be up to the separate merge code to transfer the metadata from the "spec" to the "jboss" metadata. The augment for Servlet 3 would operate on the objects from the "spec" package, naturally.

            • 18. Re: metadata and AS7
              jfclere

              that can't work there is a lot more in the "spec" that in the "jboss" metadata schema.

              I am not sure that extenting the jboss xsd to have all the spec things in it is a good idea.

              • 19. Re: metadata and AS7
                dmlloyd

                The intended "AS7 Way" would be to have classes for each descriptor type, and a "combined" class which is actually used to define the server configuration (which would, presumably, also include data derived from annotations).

                • 20. Re: metadata and AS7
                  jfclere

                  That would mean 3 implementations, 3 interfaces 2 parsers.

                  The "jboss" one in fact just extends the spec one and I think that is the one the "integration code" should use in AS7.

                  We have:

                  web.xml -> spec (parser/implementation/interface)

                  jboss-web.xml -> jboss (parser/implementation/interface)

                  merging (spec + jboss + annotations) would use the jboss created by the parsing of jboss-web.xml or a default configuration.

                  • 21. Re: metadata and AS7
                    jfclere

                    ok I have 2 metadatas + 2 parsers I will take the old metadata code and clean it then I will write a code to merge the 2 metadata in the "old" arranged one.

                    • 22. Re: metadata and AS7
                      rmaucher

                      What are the artifact/group/version that should be used for this "new" component ?

                      org.jboss.metadata / jboss-metadata-common -web -etc ?

                      Version number would be 3 to follow the next one, but JF had aligned it with AS (so 7).

                       

                      I still don't see any point with using interfaces on top of the beans, other than bloat the whole thing.

                      1 2 Previous Next