[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    Re: Tapestry and Clojure
From:       Ilya Obshadko <ilya.obshadko () gmail ! com>
Date:       2014-12-31 17:08:46
Message-ID: CAAT_KPKCQ+fZXxbAkuoH6LcK-aVOET8nT=S=1YunPQFe4LJdGQ () mail ! gmail ! com
[Download RAW message or body]


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.java@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.obshadko@gmail.com> wrote:
>
> > On Sun, Dec 21, 2014 at 10:22 PM, Thiago H de Paula Figueiredo <
> > thiagohp@gmail.com> wrote:
> >
> > > On Thu, 18 Dec 2014 20:01:11 -0200, Ilya Obshadko <
> > ilya.obshadko@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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic