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

Clement Escoffier commented on FELIX-2815:
------------------------------------------

Hi,

I've added a link to the 'factory/instance' page from the {{provides}} page. 

I definitely agree about the navigation, it should be completely redone. 
Unfortunately, I lack of time. Especially, the content is still on Confluence, 
and reaching the current state was really not easy (and I still have some 
issue: modifying the menu force me to edit *all* pages and re-save them, if not 
the sync do not update them). I've learned that Apache projects are migrating 
to a CMS, which might make the documentation support easier. 

> Difference between "instance" and "provides"
> --------------------------------------------
>
>                 Key: FELIX-2815
>                 URL: https://issues.apache.org/jira/browse/FELIX-2815
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>            Reporter: Andriyko
>            Assignee: Clement Escoffier
>              Labels: documentation, felix,, ipojo
>
> In the documentation on iPOJO Services:
> http://felix.apache.org/site/providing-osgi-services.html#ProvidingOSGiservices-Instancereconfiguration
> There is no clear explanation of what is the difference between <provides> 
> and <instance>.
> It is not clear why "instance" is needed at all.
> Under the "Service Properties" heading on the page, the two are used 
> interchangeably in the examples.
> For example, first "property" is configured with <provides>:
> <component classname="...FooProviderType1">
>             <provides>
>                         <property name="foo" field="m_foo" value="Foo"/>
>                         <property name="static" type="java.lang.String" 
> value="this is a static property"/>
>             </provides>
> </component>
> and then immediately, with no explanation what-so-ever and <intsance> is 
> used, with a tiny explanation that "The value can be given in the instance 
> configuration":
> <instance component="...FooProviderType1">
>    <property name="foo" value="My New Foo Value"/>
>    <property name="static" value="My Value For Static"/>
> </instance>

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

        

Reply via email to