[ 
https://issues.apache.org/jira/browse/FELIX-3069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080042#comment-13080042
 ] 

Richard S. Hall edited comment on FELIX-3069 at 8/5/11 4:16 PM:
----------------------------------------------------------------

It doesn't seem like this is any more efficient than just doing a 
props.get("namespace-uri") inside the bind method. From my point of view, this 
just creates multiple ways of doing the same thing leading to multiple places 
for there to be bugs and confusion over the "best" approach.

      was (Author: rickhall):
    It doesn't seem like this is any more efficient than just doing a 
props.get("namespace-uri") inside the bind method. From my point of view, this 
just creates multiple ways of doing the same thing leading to multiple places 
for their to be bugs and confusion over the "best" approach.
  
> Support adapted bind/unbind method signature
> --------------------------------------------
>
>                 Key: FELIX-3069
>                 URL: https://issues.apache.org/jira/browse/FELIX-3069
>             Project: Felix
>          Issue Type: New Feature
>          Components: iPOJO
>            Reporter: Guillaume Sauthier
>            Priority: Minor
>
> iPOJO already supports some basic bind/unbind methods signature (notification 
> only, gives the service, with ServiceRef or not, with a Map or not).
> I would like to be able to have the service + any additional service property 
> I'm interested in.
> Something like the following code:
> {noformat}
> public void bindAdapter(XmlAdapter adapter,
>                         @Extract("namespace-uri")) uri) {
> }
> {norformat}
> With @Extract (better name to be found) extracting the "namespace-uri" 
> service property from the ServiceReference and giving it to this method.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to