Dynamically setting target property in OSGi Reference annotatation
问题 After reading an article on Reference target (and corresponding properties), I still don't understand how to retrieve a service, when target is set at runtime (typically target and properties are set at compile time and evaluated by SCR at runtime). Let's say there are three service implementations defining @Property(name="type", value="csv") , @Property(name="type", value="xls") and @Property(name="type", value="pdf") , respectively. And one consumer with: //@Reference(target="(type=%runtime