Log Message: |
Fix FELIX-2622 Support static service properties that are not mirrored into fields
Introduce a new StaticServiceProperty annotation:
@Component
@Provides(
specifications= {FooService.class, BarService.class},
properties= {
@StaticServiceProperty(name="prop1", value="prop1", type="java.lang.String"),
@StaticServiceProperty(name="prop2", type="java.lang.String"),
@StaticServiceProperty(name="props", value="{prop1, prop2}", type="string[]"),
@StaticServiceProperty(name="mandatory1", mandatory=true, type="string")
})
To improve the error management, we can't use the ServiceProperty annotation as the type attribute is mandatory.
|