Hi James,

You got it! Setting metatype=true worked as expected.

Thank you very much
Ale

On Jun 8, 2011, at 5:30 PM, James Stansell wrote:

> Hi Ale,
> 
> The default metatype value changed from true to false between javadoc and
> annotation.
> 
> Try @Component(metatype="true" ...) ?
> 
> Regards,
> 
> -james.
> 
> On Wed, Jun 8, 2011 at 10:03 AM, Alessandro Novarini <
> [email protected]> wrote:
> 
>> Hello again,
>> 
>> I've just done another test, reverting the only major change I did:
>> replacing the felix scr javadoc with the felix annotation.
>> Just to be sure I'm reading again the documentation here:
>> http://felix.apache.org/site/scr-annotations.html
>> 
>> But can you confirm that the following bits of code are equivalent, please?
>> 
>> /**
>> * scr.component label="MY_FOO" description="MY_BAR"
>> *          name="spikes.MyComponent"
>> *          configurationFactory="true" policy="require"
>> *
>> * scr.property name="service.vendor" value="Me"
>> * scr.property name="service.description"
>> *      value="Factory for MyComponent"
>> */
>> 
>> @Component(label = "MY_FOO", description = "MY_BAR", name =
>> "spikes.MyComponent", configurationFactory = true, policy =
>> ConfigurationPolicy.REQUIRE)
>> @Properties({
>>               @Property(name = "service.vendor", value = "Sourcesense"),
>>               @Property(name = "service.description", value = "Factory for
>> MyComponent") })
>> 
>> Because in the latter one, the configuration isn't displayed in the web
>> console.
>> Or I'm still missing something?
>> 
>> Thanks again
>> Ale
>> 
>> 

-- 
Alessandro Novarini
a-dot-novarini-at-sourcesense-dot-com



Reply via email to