On Sun, Mar 18, 2012 at 3:41 PM, trsvax <trs...@gmail.com> wrote: > I guess I've just gotten in the habit of making everything a service with an > Interface. Class reloading without a restart is pretty handy, but in this
Of course, you can make it a service, you just don't need to. If you nevertheless do, you need to make sure that you make your realm is known to Tapestry with the right interface, e.g: binder.bind(AuthorizingRealm.class, UserRealm.class); Compare http://svn.codehaus.org/tynamo/trunk/tynamo-federatedaccounts/tynamo-federatedaccounts-core/src/test/java/org/tynamo/security/federatedaccounts/testapp/services/AppModule.java to yours. > case you are correct the following is the way to go: > public static void contributeWebSecurityManager(Configuration<Realm> > configuration, UserDAO userDAO) { > configuration.add(new UserRealm(userDAO)); > } They are all correct, but I'd write it as: public static void contributeWebSecurityManager(Configuration<Realm> configuration, @Autobuild UserRealm userRealm) { configuration.add(userRealm); } Kalle --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org