root/gdt/trunk/GdtGrailsPlugin.groovy @ 80

Revision 80, 2.5 KB (checked in by work@…, 3 years ago)

- set plugin info

Line 
1/**
2 *  GDT, a plugin for Grails Domain Templates
3 *  Copyright (C) 2011 Jeroen Wesbeek
4 *
5 *  Licensed under the Apache License, Version 2.0 (the "License");
6 *  you may not use this file except in compliance with the License.
7 *  You may obtain a copy of the License at
8 *
9 *  http://www.apache.org/licenses/LICENSE-2.0
10 *
11 *  Unless required by applicable law or agreed to in writing, software
12 *  distributed under the License is distributed on an "AS IS" BASIS,
13 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 *  See the License for the specific language governing permissions and
15 *  limitations under the License.
16 *
17 *  $Author$
18 *  $Rev$
19 *  $Date$
20 */
21
22class GdtGrailsPlugin {
23    def version                 = "0.1"
24    def grailsVersion   = "1.3.4 > *"
25    def dependsOn               = [ajaxflow: "0.1.18 > *"]
26    def pluginExcludes  = [
27            "grails-app/views/error.gsp"
28    ]
29    def author                  = "Jeroen Wesbeek"
30    def authorEmail     = "work@osx.eu"
31    def title                   = "Grails Domain Templates"
32    def description     = '''\\
33Grails Domain Templates allows you to dynamically extend domain classes with unlimited user definable fields based on a Template for a specific Domain Class.
34If you, for example, have a Company Domain Class, but companies would like to register different fields for such an entity, several Templates could be created
35for every type of company (e.g. a financial institution template, university template, etc). Using these Templateted Domain Classed creates more dynamic
36flexibility in the application.
37'''
38    def documentation = "http://grails.org/plugin/gdt"
39
40    def doWithWebDescriptor = { xml ->
41        // TODO Implement additions to web.xml (optional), this event occurs before
42    }
43
44    def doWithSpring = {
45        // TODO Implement runtime spring config (optional)
46    }
47
48    def doWithDynamicMethods = { ctx ->
49        // TODO Implement registering dynamic methods to classes (optional)
50    }
51
52    def doWithApplicationContext = { applicationContext ->
53        // TODO Implement post initialization spring config (optional)
54    }
55
56    def onChange = { event ->
57        // TODO Implement code that is executed when any artefact that this plugin is
58        // watching is modified and reloaded. The event contains: event.source,
59        // event.application, event.manager, event.ctx, and event.plugin.
60    }
61
62    def onConfigChange = { event ->
63        // TODO Implement code that is executed when the project configuration changes.
64        // The event is the same as for 'onChange'.
65    }
66}
Note: See TracBrowser for help on using the browser.