Try simply

@Inject private UserAuthenticator _authenticator;

Also use the bind method instead of the buildUserAuthenticator.

I did it and explained it in this thread if you read it completely ;)
It's not more documented because it's an alpha project, as explained Howard
Lewis Ship in his last message.



2007/6/1, vidrilon <[EMAIL PROTECTED]>:




Joshua Jackson-3 wrote:
>
> On 6/1/07, vidrilon <[EMAIL PROTECTED]> wrote:
>>
>> Did i understood well?? Could you make it work?
>>
>> I'm also having the same problem, i have created another module,
>> UserAuthenticatorModule for validating
>> a login form, but have the same message:
>>
>> No service implements the interface
>> org.clinica.bd.pages.UserAuthenticator
>
> Did you bind UserAuthenticator to an implementation in your AppModule?
>
> --
> YM!: thejavafreak
> Blog: http://www.nagasakti.or.id/roller/joshua/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

Yes, i have tried all that has been written here,  like this..

public final class UserModule {
       public  static UserAuthenticator buildUserAuthenticator()
       {
               return new UserAuthenticatorImpl();
       }
}

@SubModule({UserModule.class})
public  class AppModule

@Inject
   @Service("UserAuthenticator")
   private UserAuthenticator _authenticator;

But, it doesnt seems to work, im angry also, why isn't more documentation,
with more examples and explanations?.

Thanks in advance
--
View this message in context:
http://www.nabble.com/T5---Service-injection-and-ioc-tf3834669.html#a10920353
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Michael Bernagou
Java Developper

Reply via email to