groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adithyank <adi.k....@gmail.com>
Subject Re: Java object conversion using ConfigSlurper
Date Wed, 16 May 2018 10:52:38 GMT
Hi Mario Garcia,

Groovy already has Map coercion feature with which the methods of any class
can be delegated to the closures in Map. This uses `as` keyword.

If we implement `asType(Class)` in `ConfigObject` (ConfigObject already
implements Map), some of the functionalities of existing coercion may be
affected. I am not sure !

If we implement 'getAs(Class)`, existing coercion will be unaffected. So, I
will prefer `getAs(Class)` first.

Note : Any ways, while testing, I will test these behaviors...

Pls advice



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Mime
View raw message