Non hai l'autorizzazione necessaria per eliminare messaggi da questo gruppo
Copia link
Segnala messaggio
Accedi per segnalare il messaggio
Mostra messaggio originale
Per visualizzare il messaggio originale, gli indirizzi email dei membri non devono essere anonimi e devi disporre dell'autorizzazione a visualizzarli.
a job-dsl-plugin
Hello
First of all, congrats for the awesome plugin :)
I think it would be useful if jobdsl had a hook so it could be possible to customize the script compiler. Specially when you're providing a library of reusable jobs, I see two main use cases:
1. Ability to auto add imports, so something like:
import static mypackage.Jobs.*
jobA(this) jobB(this)
would turn into this:
jobA(this) jobB(this)
2. Ability to subclass JobParent so you could add methods to it and specially get rid of having to pass "this" to the library methods. In the last example, the code would be:
jobA() jobB()
I think that would also open up the possibility of creating custom dsl's that could be used for developers that are not familiar with jobdsl. I know that it's just a case of adding some imports and passing the JobParent instance around, but I think it looks a lot more natural without them.
I made a little experiment and implemented a proof of concept of my ideas: