Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9aDF-0006H7-OU for pljava-dev@arkaria.postgresql.org; Sat, 22 Aug 2020 20:34:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k9aDE-0007fk-5r for pljava-dev@arkaria.postgresql.org; Sat, 22 Aug 2020 20:34:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9aDD-0007fd-V1 for pljava-dev@lists.postgresql.org; Sat, 22 Aug 2020 20:34:04 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k9aDB-0004Vg-D3 for pljava-dev@lists.postgresql.org; Sat, 22 Aug 2020 20:34:02 +0000 Received: by mail-ej1-x635.google.com with SMTP id u21so6295133ejz.0 for ; Sat, 22 Aug 2020 13:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=d88nVjjnQySgE3Db6A+N8ywS2Xhs2gpvSC1Xim4fXEs=; b=KjJmpbmechyCfX2BIYZvPCoaO8xgTHg134hu5kUf9iTJzKi3XmrBi79voWp6T7qiv/ o/HV+f3zZBCnZBU6dvck46kadrduQDr25VL/bxqoyk52TCf6yglKdbx3kgJsbpzpUwEr X96QAFnZ7/i+kBWG9H6IWnQlNgHNMLbRxkUuFuwOKdzm0d0ALNPsXxZyqEZeLLKft9PN vbAWBrMc2iC9bxfu0kPKM/GynLWRbQQYQIb2kMPZlFrpbtTACQJ3VHp19KXaHVgh9jsa 9PeCPtHYK7wv1kc4GPHcMIyFV+6fSJQ8qHA6VcEUl13XNMC32nLin2q6dd9anZNJSehP xf7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=d88nVjjnQySgE3Db6A+N8ywS2Xhs2gpvSC1Xim4fXEs=; b=eWjV/BdibM6JboBBo4WVft18u+Xh6w6eOK701eNzF/wiQPVv9OOAsFimOEGN1YXLoJ +XccXQZLSJNymOqfR4siRJB3zS5sUZubiiOMpkq+rHBg6bYTQxBvti7Tplu/2z+3t/nc MRbViFW7h3SUwg1DDwBhCitDr6lEoxQEMA0Dx/ktqDBxv/wJ1//Wyizi1/Llg0EUQE5C JfiljE46koxHCA/snbNsa9YAcpNYm4xHTlQNeA9qOx7ZPJVCfzmcMiSNbQqgkBJrtiHX yXwa2fBS8TwIw6e9MuKaZWQZIy2Uh/sZBXTZul1AkCqOMDm2p6ljJ643PYqT5UiFp9Cs SEFw== X-Gm-Message-State: AOAM533xiJaYU2JAMocIXH4exdjS7UZuWIzk1JWdB8miY7gXc4qEa0m+ IlgHssse1YQGNIS6UMNRKv1AAt4AKWt/8/cONRI= X-Google-Smtp-Source: ABdhPJwulLHiQ1dMVdjzC++rxyw05kXItWciyvaziaL6NTbt6KEwfA8KDXxW1p7IVph0rg5iJxF/MmIwF5qkWFS5Mfw= X-Received: by 2002:a17:906:2296:: with SMTP id p22mr8707126eja.510.1598128439833; Sat, 22 Aug 2020 13:33:59 -0700 (PDT) MIME-Version: 1.0 References: <5F2EC4F4.3080608@anastigmatix.net> <5F31EFEC.1080609@anastigmatix.net> <5F368380.9070203@anastigmatix.net> <5F368A99.6070709@anastigmatix.net> <5F36965C.60707@anastigmatix.net> <5F3A7DC6.8090905@anastigmatix.net> <5F3D32E9.80504@anastigmatix.net> <5F3D36BE.70703@anastigmatix.net> <5F3D38F8.7050907@anastigmatix.net> <5F3D3A75.5010304@anastigmatix.net> <5F3D3D2E.4070109@anastigmatix.net> <5F3D43BD.4020900@anastigmatix.net> <5F3DA48D.7090408@anastigmatix.net> <5F4172F9.4060608@anastigmatix.net> <5F417C68.50702@anastigmatix.net> In-Reply-To: From: Kartik Ohri Date: Sun, 23 Aug 2020 02:03:48 +0530 Message-ID: Subject: Re: the ScriptingMojo To: Chapman Flack Cc: pljava-dev@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000f63a7705ad7d4578" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000f63a7705ad7d4578 Content-Type: text/plain; charset="UTF-8" > > "Thing" as a class name is just proof-of-concept of course. :) I had >> been wondering earlier if it might be useful to make PGXSUtils >> instantiable >> and bind an instance of it into the script; its constructor could take the >> MavenProject and Log and those wouldn't have to be passed around as much. >> It would still be possible to bind selected methods of it directly with >> names of their own for convenience, but other methods could just be >> accessible as utils.method() and I think that would solve this casting >> issue. >> > Regarding this, which methods should be bound by their own names ? Should I keep the current list of methods and just add an instance of the PGXSUtils to the script or should I remove the existing bindings ? --000000000000f63a7705ad7d4578 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
"Thing" as a class name is = just proof-of-concept of course. :) I had
been wondering earlier if it might be useful to make PGXSUtils instantiable=
and bind an instance of it into the script; its constructor could take the<= br> MavenProject and Log and those wouldn't have to be passed around as muc= h.
It would still be possible to bind selected methods of it directly with
names of their own for convenience, but other methods could just be
accessible as utils.method() and I think that would solve this casting
issue.

Regardi= ng this, which methods should be bound by their own names ? Should I keep t= he current list of methods and just add an instance of the PGXSUtils to the= script or should I remove the existing bindings ?=C2=A0
--000000000000f63a7705ad7d4578--