Skip to content

[withProperties] More simple exporting my own types#26

Open
abdennour wants to merge 2 commits intoTouK:masterfrom
abdennour:master
Open

[withProperties] More simple exporting my own types#26
abdennour wants to merge 2 commits intoTouK:masterfrom
abdennour:master

Conversation

@abdennour
Copy link

This resolves handling own types , however , it does not taske benefits of groovy extra-features comparing with Java .

My suggestion is to use Closures directly :

def withProperties=['name',{it.currency.displayName}]

Instead of :

creating whole class+ Instantiate it like this .

def withProperties = ['name', new CurrencyGetter('price.currency')]

abdennour added 2 commits December 3, 2014 13:07
Useful if  we deal with Tmp file .
i.e: 
`new XlsxExporter(File.createTempFile("temp",".tmp"))`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant