> On Mar 2, 2017, at 12:30 PM, Kirk Lund <kl...@apache.org> wrote:
> 
> 
> In an effort to prevent deadlocks and move away from statics and
> singletons, I'd like to find a good alternative to this for Functions. I
> think adding this method to FunctionContext is the best solution:
> 
> /**
> * Returns a reference to the Cache for which this function is executing.
> */
> public Cache getCache();
> 
> Does this seem like a good solution? Is there any reason not to add this to
> the API?

Someone else likes your idea too:

https://issues.apache.org/jira/browse/GEODE-393

Anthony

Reply via email to