From dev-return-4549-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Fri Apr 6 20:36:34 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 6542C180649 for ; Fri, 6 Apr 2018 20:36:34 +0200 (CEST) Received: (qmail 48192 invoked by uid 500); 6 Apr 2018 18:36:33 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Received: (qmail 48178 invoked by uid 99); 6 Apr 2018 18:36:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2018 18:36:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6769E1A1610 for ; Fri, 6 Apr 2018 18:36:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.701 X-Spam-Level: X-Spam-Status: No, score=-0.701 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ecJdUKHH7gMi for ; Fri, 6 Apr 2018 18:36:29 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 6ADEB5FB37 for ; Fri, 6 Apr 2018 18:36:29 +0000 (UTC) Received: from [192.168.1.2] ([89.12.210.3]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MS5QA-1exOQI3pe6-00TF3p for ; Fri, 06 Apr 2018 20:36:28 +0200 Subject: Re: Determining the registered DGM classes at runtime To: dev@groovy.apache.org References: <2BA8478A2FBAFF4FBFDF1724FAD8C09E9022EB54@C111BKGPMBX48.ERF.thomson.com> From: Jochen Theodorou Message-ID: Date: Fri, 6 Apr 2018 20:36:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <2BA8478A2FBAFF4FBFDF1724FAD8C09E9022EB54@C111BKGPMBX48.ERF.thomson.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:PsN8xV4yYSo0ojho7OybktGxIWJGLjWKLmqRzD/WxjQkGYxSkVN RuRTEhgr6QcIIGiq75MeHjox6E6jincR0zkF1z2JBWs2BVguAZdle+aUJxFk2U1eUPbHgVh PKTHEEbhVmjwl4O857zBo6zk2+FrVpQB364FSxx40dTT640jJmzBhUrnfhwkoWr+k26w2+7 dfK6AiY8bySgHjdE+0Gyg== X-UI-Out-Filterresults: notjunk:1;V01:K0:chJ2HzyYmH4=:bpHmiuJr4VU/S+81MrTzbi cYM6sYi/Vlr8HNY5dGVTcG4jgoDSbPq4nUcBnF6ZO+mkMsHY6hgC894MsfF/BogyRC8ZPWDXB 9SkRMVS8MhtdZ1hoJl2BJEjAGB03kznRu21BtBqDknOjl/u0WuueMNYbW4hxmwc3QOwv4uCds YNznPJ785W29Dr5PzA4R9HewH1SDWxK0uSCnDJsQTgpq0Y0LCn66rbwb2GuQQV249E5UatEp+ 3ZHCWzeyzIlwORVAs4nHP6vDqyIlpt/8dkhzyhSbgNSa3RFnzu5gYY8+ZLf8WR5bUyGQjyMnI Oml6UXVdmFieNrR9GA4cF2oajHWgNwVOhrRIVj7V4aEewbfaeG41O2QtEBYTWxaROybh3Z08/ xO6nK7ktF5tMGe06K+7m1dtuWA4ELNDyo1tFmcnOseZWsn9R0CPzDPmmALQb0GeriaGLspcSZ TrOkZNebfaskkpEq4t2o2LLbsiq7AP7QHF/fJihvJQrn8d/emK2DZXu1PkHu2zkJM4X7AycQ0 RFOXWm7rNDmq13ry13NXP4DK+yEkm66/KtEmNUYOVsy04Poi3Z6QI2e3Wu1aSIl1iVi1EgZbe NP4z7GVMPIFvHKGBV8t5ku8SKBYjSFXlLLOcJDpadgFJ8WDKgrXSyYDxZ0ppUmWPmNJFTHnrt H/ohpIs2uFL4/8vEJwoXCtjxHD0N+PgCK5QVaPUjwV/h9paHr9rU5Vd3gcpdy7xcNvzpDk9fs hM5EFiNpNBzpJt4J+lgHTcsk8+u+nY6cTBLuiuQa5EXrfmbarVhdlXKdxMH/WGA9jFDwIaClF DZaz4+G8Ax00V+Mmf9BRCa2LacN9KcPKAU5Mmx05vAyyy3rup4= On 06.04.2018 18:42, eric.milles@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 was never really a good > source to begin with.� I tried looking through ExtensionModuleRegstry, > but I couldn't make out a good entry point for asking for the DGM > classes. you will have to build an index for this I think. You can ask for a list of modules and also for the available methods in each. Or you simulate the discovery mechanism and play it from there without instantiating any of the Modules bye Jochen