Thanks Lance, I've already sorted that out. Actually now I'm experimenting with Scala instead of Clojure: looks like it's a better match for my requirements.
On Tue, Dec 30, 2014 at 6:07 PM, Lance Java <lance.j...@googlemail.com> wrote: > The logger is not a service and cannot be @Injected into IOC services. > > You have probably seen that you can @Inject the logger into pages and > components. @Inject has been extended (perhaps hijacked) for components and > @Injected values can come from contributed InjectionProviders. See > CommonResourcesInjectionProvider for the Logger implementation. > > More info here http://tapestry.apache.org/injection-in-detail.html > On 28 Dec 2014 11:16, "Ilya Obshadko" <ilya.obsha...@gmail.com> wrote: > > > On Sun, Dec 21, 2014 at 10:22 PM, Thiago H de Paula Figueiredo < > > thiag...@gmail.com> wrote: > > > > > On Thu, 18 Dec 2014 20:01:11 -0200, Ilya Obshadko < > > ilya.obsha...@gmail.com> > > > wrote: > > > > > > One more question regarding ObjectLocator. > > >> Turns out it cannot resolve services like Logger, complaining that no > > >> service implements its interface. > > >> Could you suggest how to solve it? > > >> > > > > > > Have you tried getObject() instead of getService()? Logger isn't a > > > Tapestry-IoC service (unless you create it, of course), so you cannot > use > > > getService() to get it. > > > > > > > getObject() on ObjectLocator service instance doesn't work as well. Are > > there any other methods to obtain logger service instance? > > > > -- > > Ilya Obshadko > > > -- Ilya Obshadko