Is there a reason you don't want to make it a service?

On Thu, Jun 2, 2011 at 3:02 PM, sam lee <[email protected]> wrote:
> Hey,
>
> I am using maven-scr-plugin.
>
> I have:
>
> @Component(immediate=true)
> public class Foo {
>    @Reference
>    private Bar bar;
> }
>
>
> Obviously, when I get  Foo instance by  calling constructor,  new Foo(),
> bar isn't set.
>
> Is there a way to get Foo instance OSGi-way?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to