Kalle, really useful tip. But...
I wrote simple interface

  public interface AccountRealm {
      void addAccount(String username, String password);
      boolean accountExists(String username);
  }

and changed my realm description to

    public class AccountRealmImpl extends AuthorizingRealm implements
AccountRealm

changed to AppModule

    public static void bind(ServiceBinder binder)
    {
        binder.bind(AccountRealm.class, AccountRealmImpl.class);
    }

    @Contribute(WebSecurityManager.class)
    public static void addRealms(Configuration<Realm> configuration) {
        AccountRealmImpl realm = new AccountRealmImpl();
        configuration.add(realm);
    }

but code

   @Inject
   private AccountRealm realm;

   void onActivate() {
      realm.addAccount("User", "123");
   }

throws "No service implements the interface java.lang.String". Whats wrong
in my code?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Call-Tynamo-s-SimpleAccountRealm-s-methods-tp5719578p5719608.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to