You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Roy Teeuwen <ro...@teeuwen.be> on 2016/10/02 21:13:08 UTC

OSGi Declarative Services

Hey all,

Seeing as we upgraded our instance, we want to switch from Apache Felix SCR Annotations to OSGi Declarative Services for new components. 
One of the things I noticed is that there is no @Property and @Properties in declarative services. Is there still a way to provide label and descriptions for properties? 
Looking at the @Component it is just key=value property types, without any extra metadata.

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


Re: OSGi Declarative Services

Posted by David Jencks <da...@yahoo.com.INVALID>.
Yes :-)

I think you’ll like it…. I did :-)

david jencks

> On Oct 2, 2016, at 2:56 PM, Roy Teeuwen <ro...@teeuwen.be> wrote:
> 
> Hey Neil,
> 
> Thanks, I guess I have to use ObjectClassDefinition and AttributeDefinition annotations then :)
> 
> Greets
> Roy
>> On 2 Oct 2016, at 23:46, Neil Bartlett <nj...@gmail.com> wrote:
>> 
>> Oh I see. For that you should use a configuration type. See the first section of http://njbartlett.name/2015/08/17/osgir6-declarative-services.html <http://njbartlett.name/2015/08/17/osgir6-declarative-services.html>
>> 
>> Regards,
>> Neil
>> 
>> 
>> 
>>> On 2 Oct 2016, at 22:43, Roy Teeuwen <roy@teeuwen.be <ma...@teeuwen.be>> wrote:
>>> 
>>> Hey Neil,
>>> 
>>> See http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#property <http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#property><http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#property <http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#property>>
>>> Here you see you can also assign a label and a description to a property, these will then be shown when configuring a component in the felix web console. 
>>> Thats what I am looking for in the new OSGi DS
>>> 
>>> Greets,
>>> Roy
>>>> On 2 Oct 2016, at 23:37, Neil Bartlett <nj...@gmail.com> wrote:
>>>> 
>>>> Hi Roy,
>>>> 
>>>> What are you looking for exactly? Service properties are simply key-value pairs.
>>>> 
>>>> Regards,
>>>> Neil
>>>> 
>>>> 
>>>>> On 2 Oct 2016, at 22:13, Roy Teeuwen <ro...@teeuwen.be> wrote:
>>>>> 
>>>>> Hey all,
>>>>> 
>>>>> Seeing as we upgraded our instance, we want to switch from Apache Felix SCR Annotations to OSGi Declarative Services for new components. 
>>>>> One of the things I noticed is that there is no @Property and @Properties in declarative services. Is there still a way to provide label and descriptions for properties? 
>>>>> Looking at the @Component it is just key=value property types, without any extra metadata.
>>>>> 
>>>>> Greets,
>>>>> Roy
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>>> 
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org <ma...@felix.apache.org>
>> For additional commands, e-mail: users-help@felix.apache.org <ma...@felix.apache.org>


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


Re: OSGi Declarative Services

Posted by Roy Teeuwen <ro...@teeuwen.be>.
Thanks Carsten!

Cheers,
Roy
> On 3 Oct 2016, at 12:02, Carsten Ziegeler <cz...@apache.org> wrote:
> 
> Roy Teeuwen wrote
>> Hey Neil,
>> 
>> Thanks, I guess I have to use ObjectClassDefinition and AttributeDefinition annotations then :)
>> 
> Yepp,
> I've some additional tutorials/samples at:
> 
> http://blog.osoco.de/2015/11/osgi-components-simply-simple-part-iii/
> 
> Carsten
> 
> 
> 
> -- 
> Carsten Ziegeler
> Adobe Research Switzerland
> cziegeler@apache.org
> 
> 
> ---------------------------------------------------------------------
> 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


Re: OSGi Declarative Services

Posted by Carsten Ziegeler <cz...@apache.org>.
Roy Teeuwen wrote
> Hey Neil,
> 
> Thanks, I guess I have to use ObjectClassDefinition and AttributeDefinition annotations then :)
> 
Yepp,
I've some additional tutorials/samples at:

http://blog.osoco.de/2015/11/osgi-components-simply-simple-part-iii/

Carsten

 

-- 
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org


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


Re: OSGi Declarative Services

Posted by Roy Teeuwen <ro...@teeuwen.be>.
Hey Neil,

Thanks, I guess I have to use ObjectClassDefinition and AttributeDefinition annotations then :)

Greets
Roy
> On 2 Oct 2016, at 23:46, Neil Bartlett <nj...@gmail.com> wrote:
> 
> Oh I see. For that you should use a configuration type. See the first section of http://njbartlett.name/2015/08/17/osgir6-declarative-services.html <http://njbartlett.name/2015/08/17/osgir6-declarative-services.html>
> 
> Regards,
> Neil
> 
> 
> 
>> On 2 Oct 2016, at 22:43, Roy Teeuwen <roy@teeuwen.be <ma...@teeuwen.be>> wrote:
>> 
>> Hey Neil,
>> 
>> See http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#property <http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#property><http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#property <http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#property>>
>> Here you see you can also assign a label and a description to a property, these will then be shown when configuring a component in the felix web console. 
>> Thats what I am looking for in the new OSGi DS
>> 
>> Greets,
>> Roy
>>> On 2 Oct 2016, at 23:37, Neil Bartlett <nj...@gmail.com> wrote:
>>> 
>>> Hi Roy,
>>> 
>>> What are you looking for exactly? Service properties are simply key-value pairs.
>>> 
>>> Regards,
>>> Neil
>>> 
>>> 
>>>> On 2 Oct 2016, at 22:13, Roy Teeuwen <ro...@teeuwen.be> wrote:
>>>> 
>>>> Hey all,
>>>> 
>>>> Seeing as we upgraded our instance, we want to switch from Apache Felix SCR Annotations to OSGi Declarative Services for new components. 
>>>> One of the things I noticed is that there is no @Property and @Properties in declarative services. Is there still a way to provide label and descriptions for properties? 
>>>> Looking at the @Component it is just key=value property types, without any extra metadata.
>>>> 
>>>> Greets,
>>>> Roy
>>>> ---------------------------------------------------------------------
>>>> 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
>>> 
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org <ma...@felix.apache.org>
> For additional commands, e-mail: users-help@felix.apache.org <ma...@felix.apache.org>

Re: OSGi Declarative Services

Posted by Neil Bartlett <nj...@gmail.com>.
Oh I see. For that you should use a configuration type. See the first section of http://njbartlett.name/2015/08/17/osgir6-declarative-services.html

Regards,
Neil



> On 2 Oct 2016, at 22:43, Roy Teeuwen <ro...@teeuwen.be> wrote:
> 
> Hey Neil,
> 
> See http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#property <http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#property>
> Here you see you can also assign a label and a description to a property, these will then be shown when configuring a component in the felix web console. 
> Thats what I am looking for in the new OSGi DS
> 
> Greets,
> Roy
>> On 2 Oct 2016, at 23:37, Neil Bartlett <nj...@gmail.com> wrote:
>> 
>> Hi Roy,
>> 
>> What are you looking for exactly? Service properties are simply key-value pairs.
>> 
>> Regards,
>> Neil
>> 
>> 
>>> On 2 Oct 2016, at 22:13, Roy Teeuwen <ro...@teeuwen.be> wrote:
>>> 
>>> Hey all,
>>> 
>>> Seeing as we upgraded our instance, we want to switch from Apache Felix SCR Annotations to OSGi Declarative Services for new components. 
>>> One of the things I noticed is that there is no @Property and @Properties in declarative services. Is there still a way to provide label and descriptions for properties? 
>>> Looking at the @Component it is just key=value property types, without any extra metadata.
>>> 
>>> Greets,
>>> Roy
>>> ---------------------------------------------------------------------
>>> 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
>> 
> 


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


Re: OSGi Declarative Services

Posted by Roy Teeuwen <ro...@teeuwen.be>.
Hey Neil,

See http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#property <http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#property>
Here you see you can also assign a label and a description to a property, these will then be shown when configuring a component in the felix web console. 
Thats what I am looking for in the new OSGi DS

Greets,
Roy
> On 2 Oct 2016, at 23:37, Neil Bartlett <nj...@gmail.com> wrote:
> 
> Hi Roy,
> 
> What are you looking for exactly? Service properties are simply key-value pairs.
> 
> Regards,
> Neil
> 
> 
>> On 2 Oct 2016, at 22:13, Roy Teeuwen <ro...@teeuwen.be> wrote:
>> 
>> Hey all,
>> 
>> Seeing as we upgraded our instance, we want to switch from Apache Felix SCR Annotations to OSGi Declarative Services for new components. 
>> One of the things I noticed is that there is no @Property and @Properties in declarative services. Is there still a way to provide label and descriptions for properties? 
>> Looking at the @Component it is just key=value property types, without any extra metadata.
>> 
>> Greets,
>> Roy
>> ---------------------------------------------------------------------
>> 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
> 


Re: OSGi Declarative Services

Posted by Neil Bartlett <nj...@gmail.com>.
Hi Roy,

What are you looking for exactly? Service properties are simply key-value pairs.

Regards,
Neil


> On 2 Oct 2016, at 22:13, Roy Teeuwen <ro...@teeuwen.be> wrote:
> 
> Hey all,
> 
> Seeing as we upgraded our instance, we want to switch from Apache Felix SCR Annotations to OSGi Declarative Services for new components. 
> One of the things I noticed is that there is no @Property and @Properties in declarative services. Is there still a way to provide label and descriptions for properties? 
> Looking at the @Component it is just key=value property types, without any extra metadata.
> 
> Greets,
> Roy
> ---------------------------------------------------------------------
> 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