Hi,
By default iPOJO (1.8.0+) is using proxies, so you can give the service object
to any other objects:
@Requires
private LogService m_log;
//...
public Helper createHelper() {
return new Helper(m_log);
}
Regards,
Clement
On 26.02.2012, at 10:54, Fairouz Fakhfakh wrote:
>
> Hello,
>
> I'm using iPOJO in my application
> and I would like to inject a service
>
> instance in another class. How can
> I do that?
>
> Do you have an example, please?
>
> Thank you for answering me.
>
> Best regards,
>
>
>
>
>
> --
>
> Fairouz FAKHFAKH
>
> Master student
>
> Research
> group ReDCAD
>
> National School of Engineers of Sfax , Tunisia
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]