--- On Thu, 1/14/10, Adam Heath <doo...@brainfood.com> wrote: > From: Adam Heath <doo...@brainfood.com> > Subject: Re: svn commit: r899053 - > /ofbiz/branches/executioncontext20091231/framework/context/src/org/ofbiz/context/ContextUtil.java > To: dev@ofbiz.apache.org > Date: Thursday, January 14, 2010, 3:54 PM > Adam Heath wrote: > > T result = Controller.runWith(data, new > Callable<T>() { > > public T call() throws > Exception { > > // code > > return null; > > } > > }); > > I've actually attempted this, and while I think the > implementation of > this pattern is simple, actually *using* it in higher-level > code ends > up making things rather verbose. > > /me goes to think more
Just wondering - why would using it in higher level code be necessary? The higher level code should be using the security-aware artifacts, and not try to be one.