You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Benson Margulies <be...@basistech.com> on 2015/10/02 01:54:20 UTC

scr:details reports greedy as static with karaf 4.0.1

Code:

@Reference(cardinality = ReferenceCardinality.MULTIPLE, policyOption =
ReferencePolicyOption.GREEDY)
public void setWorkerComponentService(WorkerComponentService
workerComponentService) {
    this.allComponents.put(workerComponentService.getComponentService().componentType().getType(),
workerComponentService);
    LOG.info("Found component " +
workerComponentService.getComponentService().componentType());
}


scr:details:

References
  Reference           : WorkerComponentService
    State             : satisfied
    Multiple          : multiple
    Optional          : optional
    Policy            : static
    Service Reference : Bound Service ID 147
(com.basistech.ws.worker.rbl.BaseLinguisticsComponentServiceImpl)
    Service Reference : Bound Service ID 148
(com.basistech.ws.worker.mockpnm.MockPairwiseNameMatchingService)
    Service Reference : Bound Service ID 154
(com.basistech.ws.worker.mocknametranslation.impl.MockNameTranslationService)
    Service Reference : Bound Service ID 155
(com.basistech.ws.sdk.mockrli.impl.MockRliComponentServiceImpl)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: scr:details reports greedy as static with karaf 4.0.1

Posted by David Jencks <da...@yahoo.com>.
Well, that’s not too surprising because your reference is indeed static (the default).  Whatever is producing this report apparently doesn’t know about the policy option so isn’t reporting it.

david jencks

> On Oct 1, 2015, at 7:54 PM, Benson Margulies <be...@basistech.com> wrote:
> 
> Code:
> 
> @Reference(cardinality = ReferenceCardinality.MULTIPLE, policyOption =
> ReferencePolicyOption.GREEDY)
> public void setWorkerComponentService(WorkerComponentService
> workerComponentService) {
>    this.allComponents.put(workerComponentService.getComponentService().componentType().getType(),
> workerComponentService);
>    LOG.info("Found component " +
> workerComponentService.getComponentService().componentType());
> }
> 
> 
> scr:details:
> 
> References
>  Reference           : WorkerComponentService
>    State             : satisfied
>    Multiple          : multiple
>    Optional          : optional
>    Policy            : static
>    Service Reference : Bound Service ID 147
> (com.basistech.ws.worker.rbl.BaseLinguisticsComponentServiceImpl)
>    Service Reference : Bound Service ID 148
> (com.basistech.ws.worker.mockpnm.MockPairwiseNameMatchingService)
>    Service Reference : Bound Service ID 154
> (com.basistech.ws.worker.mocknametranslation.impl.MockNameTranslationService)
>    Service Reference : Bound Service ID 155
> (com.basistech.ws.sdk.mockrli.impl.MockRliComponentServiceImpl)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 


Re: scr:details reports greedy as static with karaf 4.0.1

Posted by David Jencks <da...@yahoo.com.INVALID>.
Well, that’s not too surprising because your reference is indeed static (the default).  Whatever is producing this report apparently doesn’t know about the policy option so isn’t reporting it.

david jencks

> On Oct 1, 2015, at 7:54 PM, Benson Margulies <be...@basistech.com> wrote:
> 
> Code:
> 
> @Reference(cardinality = ReferenceCardinality.MULTIPLE, policyOption =
> ReferencePolicyOption.GREEDY)
> public void setWorkerComponentService(WorkerComponentService
> workerComponentService) {
>    this.allComponents.put(workerComponentService.getComponentService().componentType().getType(),
> workerComponentService);
>    LOG.info("Found component " +
> workerComponentService.getComponentService().componentType());
> }
> 
> 
> scr:details:
> 
> References
>  Reference           : WorkerComponentService
>    State             : satisfied
>    Multiple          : multiple
>    Optional          : optional
>    Policy            : static
>    Service Reference : Bound Service ID 147
> (com.basistech.ws.worker.rbl.BaseLinguisticsComponentServiceImpl)
>    Service Reference : Bound Service ID 148
> (com.basistech.ws.worker.mockpnm.MockPairwiseNameMatchingService)
>    Service Reference : Bound Service ID 154
> (com.basistech.ws.worker.mocknametranslation.impl.MockNameTranslationService)
>    Service Reference : Bound Service ID 155
> (com.basistech.ws.sdk.mockrli.impl.MockRliComponentServiceImpl)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org