Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B49E818BC4 for ; Wed, 25 Nov 2015 17:02:48 +0000 (UTC) Received: (qmail 15584 invoked by uid 500); 25 Nov 2015 17:02:48 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 15524 invoked by uid 500); 25 Nov 2015 17:02:48 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 15513 invoked by uid 99); 25 Nov 2015 17:02:48 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2015 17:02:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BE85C180A8D for ; Wed, 25 Nov 2015 17:02:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.582 X-Spam-Level: ** X-Spam-Status: No, score=2.582 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, KHOP_DYNAMIC=0.781, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id mUFdIziGcBom for ; Wed, 25 Nov 2015 17:02:39 +0000 (UTC) Received: from hupie.dyndns.org (hupie.dyndns.org [80.101.237.101]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id EB6C321157 for ; Wed, 25 Nov 2015 17:02:38 +0000 (UTC) Received: from paul.internal.Hupie.com (hupie.dyndns.org [80.101.237.101]) by hupie.dyndns.org (Postfix) with ESMTP id E1AC848C655 for ; Wed, 25 Nov 2015 18:02:31 +0100 (CET) Subject: Re: configuration with new (R6) @interface and OSGi annotations To: users@felix.apache.org References: <6231680.kkqHbRS9uO@madness> <5655B740.8040905@apache.org> <1638975.sy9V5VRpnG@madness> From: Ferry Huberts Message-ID: <5655E9A7.5010708@hupie.com> Date: Wed, 25 Nov 2015 18:02:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1638975.sy9V5VRpnG@madness> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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