On 22/12/05, Jeremy Aston <
[hidden email]> wrote:
> >
> > Is this something you want to chat about over MSN or shall I give you
> > the overview via e-mail? :-)
> >
>
> email would be cool as I am about to drive down to Devon for the week.
Ok well I will try explain the structure as well as possible, but if
you have any questions e-mail me back.
Essentially what you want to do is create a new Grails sitemap
artifact first to do this have a look at:
src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsApplication
This is the class that parses in all of the groovy files and creates
the relevant wrappper classes to configure each artifact (for example
DefaultGrailsControllerClass)
You will then want to have a look at:
src/commons/org/codehaus/groovy/grails/commons/spring/SpringConfig
This is the class that configures Grails via spring programmatically
at runtime. You will see in here how it sets up the controllers,
domain classes, data sources etc. .. it also sets up the URL mappings
using a Spring controller (see lines 236-240)
You will likely also need to look at the build as it configures the
root mappings in a web.xml.template which you are also familiar with.
And you may want to take a look the the DefaultGrailsControllerClass
to see how its setting up uri mappings to closure actions at the
moment.
You may also want to take a look at some of the test cases to see how
we bootstrap Grails for testing purposes
And of course the build stuff is in src/grails and the web stuff is in src/war
Let me know if you need anything else :-)
Graeme
>
> Cheers
>
> jez
>