On Tue, 11 Feb 2014 18:16:01 -0200, Lance Java <lance.j...@googlemail.com> wrote:

you must bind every actor and make sure it uses the correct scope
You could do something like this:

   public void bind(ServiceBinder binder) {
      Class[] actorClasses = ...;

      for (Class actorClass : actorClasses) {
         binder.bind(actorClass).scope("prototype");
      }
   }

If you put all of your classes in the same package you could use
ClassNameLocator to look them up.

That's a really nice, elegant solution! :)

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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

Reply via email to