felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ferry Huberts <maili...@hupie.com>
Subject Re: configuration with new (R6) @interface and OSGi annotations
Date Wed, 25 Nov 2015 17:02:31 GMT
See http://pelagic-open-source.blogspot.nl/2015/08/convert-to-osgi-r6.html

You probably need these bnd instructions:
-metatypeannotations: *
-dsannotations: *


And maybe even:
-dsannotations-options: inherit



On 25/11/15 17:55, Oliver Lietz wrote:
> On Wednesday 25 November 2015 14:27:28 Carsten Ziegeler wrote:
>> Hi,
>
> Hi Carsten,
>
>> not sure what @interface is,
>
> the custom configuration annotation itself, as in your sample:
>
> public @interface Config {
> 		@AttributeDefinition(name="Easy", description="Maximum value for easy")
>
>> but I have a working example at:
>>
>> https://github.com/cziegeler/samples.guessinggame
>
> It does not compile because of the HTTP Whiteboard dependency, but helps
> though.
>
> The element Designate in metatype's MetaData is missing from the generated
> XML. Will investigate what goes wrong.
>
> Regards,
> O.
>
>> Carsten
>>
>> Oliver Lietz wrote
>>
>>> hi,
>>>
>>> can someone point me to an example of @interface configuration with Maven
>>> Bundle Plugin and OSGi annotations where the configuration is editable by
>>> Web Console (metatype)?
>>>
>>> My component is annotated with @Designate(ocd = Configuration.class) and
>>> the configuration gets injected in the activate method, but the
>>> configuration doesn't show up in Web Console (Karaf 4.0.3).
>>>
>>> Is there anything special to look at in the generated XML?
>>>
>>> Thanks,
>>> O.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>

-- 
Ferry Huberts

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


Mime
View raw message