On 4/18/08, nille hammer <[EMAIL PROTECTED]> wrote: > And secondly as far as I understand only services can be parameters to build > methods. Am I wrong or do I have to make my Booking class a service?
I suggest you a slightly different approach: create a ConfirmationMailSender service. It will have a send(Booking booking) method that will send the confirmation message for a given booking. public static ConfirmationMailSender buildConfirmationMailSender(Messages messages) { return new ConfirmationMailSender(messages); } -- Thiago --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]