On Fri, 22 Nov 2013 15:47:10 -0200, John <j...@quivinco.com> wrote:

I need my setup method to run when this class is instantiated but log is null so mailDAO will also be null.

Weird. Maybe the @EagerLoad-annotated method is being called before the field injection is done. If that's really the case, that's a bug.

By the way, why don't you receive the dependencies through the consturctor? That's my preferred way to do injection in services and it avoids problems like you're having. I don't think I ever used @Inject in a service.

--
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