Re: How to restrict access to some shared libraries methods

2017-08-27 Thread Daniel Beck
> On 16. Aug 2017, at 06:42, Cristiano Kliemann wrote: > > Is there any way to implement such restriction? > Untested, and probably a leading anti-pattern, but: Try to `new Exception()` (don't throw) and inspect its stack trace to see who called the method. -- You

Re: How to restrict access to some shared libraries methods

2017-08-16 Thread R. Tyler Croy
(replies inline) On Wed, 16 Aug 2017, Cristiano Kliemann wrote: > Hi, > > We are developing pipeline shared libraries to organize common tasks. Some > of the functionality involves deploying files to our binary repository. > We've decided to create small classes and methods to keep things

How to restrict access to some shared libraries methods

2017-08-16 Thread Cristiano Kliemann
Hi, We are developing pipeline shared libraries to organize common tasks. Some of the functionality involves deploying files to our binary repository. We've decided to create small classes and methods to keep things simple and maintainable. But we have some concerns about what the developer