Le 2 mars 2018 07:03, "David Leangen" <o...@leangen.net> a écrit :

>
> Hi!
>
> I would like to implement a security feature in the command line, much
> like I would do in a servlet. Is there an easy way to intercept command
> calls so I can wrap each call with the security feature?
>
> Right now, I have to do something like this for each command method in my
> component:
>
> return auth.call( () -> {
>    [code goes here];
> });
>
> It would be preferable to do this just once for all commands, rather than
> having to wrap each command individually. I would prefer not to have to use
> a proxy object (makes it harder to debug) or create my own whiteboard
> service host (a bit heavy-handed, taking the code further away from GOGO).
>
>
> Cheers,
> =David
>
>
>

Reply via email to