<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Lincoln and Paul, thanks for the responses, the DependencyFacet and
    ResourceFacet have both worked very well for my purposes.<br>
    <br>
    At this point, I am trying to code a command which will create a
    simple Spring MVC controller from a given entity.  Thus, it is very
    similar to the current scaffold from-entity command in Forge, the
    main difference being that it will use Spring.  I have been looking
    at that command as an inspiration for its Spring counterpart.<br>
    <br>
    However, the bulk of the work seems to be done by the
    generateFromEntity() method, which I cannot find a definition for in
    the Forge core.<br>
    <br>
    I was hoping that someone on forge-dev could potentially recommend a
    starting point for creating and manipulating a Java class using
    Forge tools.<br>
    <br>
    Thanks,<br>
    Ryan<br>
    <br>
    On 11/14/2011 05:24 PM, Lincoln Baxter, III wrote:
    <blockquote
cite="mid:CAEp_U4E-FaZ8dTWVFuX5OmFSLEUaxZkN0xn6qWCUwMoVx2ZG4Q@mail.gmail.com"
      type="cite">I'd still recommend using the DependencyFacet before
      you start using the Maven facets :)<br>
      <br>
      <div class="gmail_quote">On Mon, Nov 14, 2011 at 11:18 PM, Paul
        Bakker <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:paul.bakker.nl@gmail.com">paul.bakker.nl@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex;">
          <div style="word-wrap:break-word">
            <div>Hey Ryan,</div>
            <div><br>
            </div>
            <div>What do you want to do exactly with the POM? Probably
              there is a facet already, and if not we should consider
              adding one…</div>
            <div><br>
            </div>
            <div>Besides that the ResourceFacet and JavaSourceFacet are
              for low level resource access and there are facets related
              to working with Maven facet and plugins which probably
              covers most of what you would need.</div>
            <div><br>
            </div>
            <div>Paul</div>
            <div><br>
            </div>
            <div>p.s. Spring? Really…?  ;-) <a moz-do-not-send="true"
href="http://www.slideshare.net/ertmanb/javaone-2011-migrating-spring-applications-to-java-ee-6"
                target="_blank">http://www.slideshare.net/ertmanb/javaone-2011-migrating-spring-applications-to-java-ee-6</a></div>
            <div><br>
            </div>
            <br>
            <div>
              <div>
                <div class="h5">
                  <div>On Nov 14, 2011, at 11:09 PM, Lincoln Baxter, III
                    wrote:</div>
                  <br>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">Hey Ryan,<br>
                    <br>
                    Copying forge-dev so everyone can give thoughts. We
                    (I) really need to get the website up with the
                    tutorials so things like this are more
                    straightforward. Sorry!<br>
                    <br>
                    If you use the built-in "new-plugin" command, you
                    get the POM creation stuff for free. I don't see a
                    reason to duplicate that. It'll basically just give
                    you a java maven project, which can then be
                    customized using the DependencyFacet, and other
                    facets like JavaSourceFacet.<br>
                    <br>
                    Mostly we don't assume we need to create projects,
                    because we just operate on a "new-project" or any
                    other existing project.<br>
                    <br>
                    For examples of this, take a look at the
                    javaee-impl/ module in the forge core/ project on
                    GitHub. This is a pretty comprehensive example of
                    the intended architecture (facets to abstract
                    functionality away from the project, then plugins to
                    interact with the facets.)<br>
                    <br>
                    Glad to see this! Looking forward to doing some
                    spring stuff!<br>
                    ~Lincoln<br>
                    <br>
                    <div class="gmail_quote">On Mon, Nov 14, 2011 at
                      10:52 PM, Ryan Bradley <span dir="ltr">&lt;<a
                          moz-do-not-send="true"
                          href="mailto:rbradley@redhat.com"
                          target="_blank">rbradley@redhat.com</a>&gt;</span>
                      wrote:<br>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">Hi Lincoln,<br>
                        <br>
                        I'm not sure if you remember, but Marius
                        introduced us at the JBoss face-to-face meeting
                        in Toronto a few months ago.  I've just started
                        working on a Forge plugin that can be used to
                        create Spring web applications.<br>
                        <br>
                        However, Marius doesn't have much experience
                        with the Forge API, so I was wondering if I
                        could ask you a question.  I was wondering how I
                        could use Forge to create and edit new files.
                         For example, when the user creates a new
                        project, the plugin should create files such as
                        a POM for the web app.  If there's a simple
                        answer, or a good spot to look within the Forge
                        core, that would be much appreciated.<br>
                        <br>
                        Thanks,<br>
                        <font color="#888888">
                          Ryan<br>
                        </font></blockquote>
                    </div>
                    <br>
                    <br clear="all">
                    <br>
                    -- <br>
                    Lincoln Baxter, III<br>
                    <a moz-do-not-send="true" href="http://ocpsoft.com/"
                      target="_blank">http://ocpsoft.com</a><br>
                    <a moz-do-not-send="true"
                      href="http://scrumshark.com/" target="_blank">http://scrumshark.com</a><br>
                    "Keep it Simple"<br>
                  </div>
                </div>
                _______________________________________________<br>
                forge-dev mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:forge-dev@lists.jboss.org"
                  target="_blank">forge-dev@lists.jboss.org</a><br>
                <a moz-do-not-send="true"
                  href="https://lists.jboss.org/mailman/listinfo/forge-dev"
                  target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
              </blockquote>
            </div>
            <br>
          </div>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      Lincoln Baxter, III<br>
      <a moz-do-not-send="true" href="http://ocpsoft.com">http://ocpsoft.com</a><br>
      <a moz-do-not-send="true" href="http://scrumshark.com">http://scrumshark.com</a><br>
      "Keep it Simple"<br>
    </blockquote>
    <br>
  </body>
</html>