forked from ricardojmendez/grails-currencies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCurrenciesGrailsPlugin.groovy
39 lines (34 loc) · 1.49 KB
/
CurrenciesGrailsPlugin.groovy
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
39
class CurrenciesGrailsPlugin {
def version = "1.3.2"
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).
It's recommended you use the money amounts embedded.
'''
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
}
}