The attribute policyOption is undefined for the annotation type Reference
Hi
can anyone help on this below issue,
We are replacing felix annotations with OSGI DS annotations. We have come across with a challenge please find below
Felix annotation :
@Reference(policyOption = ReferencePolicyOption.GREEDY)
protected UserConnector userConnector;
OSGI Annotation I tried :
protected UserConnector userConnector;
@Reference(policyOption = ReferencePolicyOption.GREEDY)
public void bindUserConnector(UserConnector userConnector) {
this.userConnector = userConnector;
}
public void unbindUserConnector(UserConnector userConnector) {
this.userConnector = userConnector;
}
But there is an error in eclipse where “The attribute policyOption is undefined for the annotation type Reference”.
Can you please tell me whether policyOption is deprecated in OSGi annotations.
Please let me know how to use policyOption = ReferencePolicyOption.Greedy in @Reference OSGI annotation.
Much Appreciated in advance.
Thanks
Vijay
