Hi

I was reading some doc regarding another issue and I just ran into this
example of service injection :

<page-specification class=". . .">

 <inject property="mailSender" object="service:mymodule.MailSender"/>

</page-specification>

I'm wondering what the difference with an old fashioned "static method"
called let's say "sendMail".

What are the benefits of the service injection ?

It may be a stupid question, I apologize in advance, I'm just curious...

Thanks in advance
ZedroS

Reply via email to