RE: Determining the registered DGM classes at runtime

2018-04-09 Thread eric.milles
Thanks for the tip. Looking through StaticTypeCheckingSupport.EXTENSION_METHOD_CACHE.getExtensionMethods(ClassLoader) I was able to see that ExtensionModuleScanner is what I was looking for. Here is my end result for discovering the configured DGM classes: public static class XYGroovyCla

Re: Determining the registered DGM classes at runtime

2018-04-08 Thread Jochen Theodorou
On 08.04.2018 18:51, Cédric Champeau wrote: 2018-04-06 22:42 GMT+02:00 Jochen Theodorou >: ah sorry, I was not explaining right... I was going to suggest something similar to what you probably already have found, which is StaticTypeCheckingSupport.EXTE

Re: Determining the registered DGM classes at runtime

2018-04-08 Thread Cédric Champeau
2018-04-06 22:42 GMT+02:00 Jochen Theodorou : > ah sorry, I was not explaining right... > > I was going to suggest something similar to what you probably already have > found, which is StaticTypeCheckingSupport.EXTE > NSION_METHOD_CACHE.getExtensionMethods(ClassLoader) > but for some reason I do n

Re: Determining the registered DGM classes at runtime

2018-04-06 Thread Jochen Theodorou
g the registered DGM classes at runtime On 06.04.2018 18:42, eric.mil...@thomsonreuters.com wrote: Is it possible to determine the available Category (aka DGM) extension classes at runtime?  I have been relying on DefaultGroovyMethods.DGM_LIKE_CLASSES, but this has been getting reduced with each re

RE: Determining the registered DGM classes at runtime

2018-04-06 Thread eric.milles
What API can I call to get a list of modules? I'm having trouble determining the actual entry point. -Original Message- From: Jochen Theodorou [mailto:blackd...@gmx.org] Sent: Friday, April 06, 2018 1:36 PM To: dev@groovy.apache.org Subject: Re: Determining the registered DGM cl

Re: Determining the registered DGM classes at runtime

2018-04-06 Thread Jochen Theodorou
On 06.04.2018 18:42, eric.mil...@thomsonreuters.com wrote: Is it possible to determine the available Category (aka DGM) extension classes at runtime?  I have been relying on DefaultGroovyMethods.DGM_LIKE_CLASSES, but this has been getting reduced with each release due to modularization.  And it

Determining the registered DGM classes at runtime

2018-04-06 Thread eric.milles
Is it possible to determine the available Category (aka DGM) extension classes at runtime? I have been relying on DefaultGroovyMethods.DGM_LIKE_CLASSES, but this has been getting reduced with each release due to modularization. And it was never really a good source to begin with. I tried look