ricardojmendez / grails-currencies

Multi-currency plugin for Grails

This URL has Read+Write access

grails-currencies / CurrenciesGrailsPlugin.groovy
100644 38 lines (33 sloc) 1.464 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
class CurrenciesGrailsPlugin {
def version = 1.0
def dependsOn = [:]
 
    // TODO Add accent once Grail's UTF-8 bug is fixed
    def author = "Ricardo J. Mendez"
    def authorEmail = "ricardo@arquetipos.co.cr"
    def title = "Currency and exchange rate plugin for grails"
    def description = '''\
Allows easy storage of currencies and exchange rates across them. Provides
a Money helper class that is used for converting between currencies at the
exchange rate on a certain date (the current date is used by default).
'''
 
 
def doWithSpring = {
// TODO Implement runtime spring config (optional)
}
def doWithApplicationContext = { applicationContext ->
// TODO Implement post initialization spring config (optional)
}
def doWithWebDescriptor = { xml ->
// TODO Implement additions to web.xml (optional)
}
def doWithDynamicMethods = { ctx ->
// TODO Implement additions to web.xml (optional)
}
def onChange = { event ->
// TODO Implement code that is executed when this class plugin class is changed
// the event contains: event.application and event.applicationContext objects
}
def onApplicationChange = { event ->
// TODO Implement code that is executed when any class in a GrailsApplication changes
// the event contain: event.source, event.application and event.applicationContext objects
}
}