If you need to know the language, can't we pass this as a string into the service? Other than that, add sounds good to me (don't know why I picked apply anyway...)
Carsten 2013/9/5 Bertrand Delacretaz <bdelacre...@apache.org> > On Thu, Sep 5, 2013 at 10:14 AM, Carsten Ziegeler <cziege...@apache.org> > wrote: > > What about defining a service (whatever name :) ) that has something > like a: > > applyBindings(Bindings b , String context) > > method?... > > Maybe > > addContextBindings(Bindings b, ScriptEngineFactory f, String context) > > As the ScriptEngineFactory is needed to know what the current language > is, and "add" for consistent naming with the existing > BindingsValuesProvider.addBindings(Bindings b) method. > > WDYT? > > -Bertrand > -- Carsten Ziegeler cziege...@apache.org