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?

Reply via email to