Return-Path: X-Original-To: apmail-zest-dev-archive@minotaur.apache.org Delivered-To: apmail-zest-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A446F190D3 for ; Fri, 15 Apr 2016 07:37:43 +0000 (UTC) Received: (qmail 75273 invoked by uid 500); 15 Apr 2016 07:37:43 -0000 Delivered-To: apmail-zest-dev-archive@zest.apache.org Received: (qmail 75237 invoked by uid 500); 15 Apr 2016 07:37:43 -0000 Mailing-List: contact dev-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list dev@zest.apache.org Received: (qmail 75225 invoked by uid 99); 15 Apr 2016 07:37:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Apr 2016 07:37:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id BA8FEC023E for ; Fri, 15 Apr 2016 07:37:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id iOOthbZlD8Uy for ; Fri, 15 Apr 2016 07:37:38 +0000 (UTC) Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 158D75F23C for ; Fri, 15 Apr 2016 07:37:38 +0000 (UTC) Received: by mail-ob0-f181.google.com with SMTP id tz8so60462642obc.0 for ; Fri, 15 Apr 2016 00:37:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=kmPk7Yrk4RmMN/ueuhHfghA+uPwsPKD+8o9VynDHHco=; b=FioavDqu5sXip4ZxePPGGC0m+doupP58ZE5SCTFp098Ic261gClBKjN2zHwZd6P296 AlklMjolmlsqbFAnrl2NigxMCxY4idzgcP1Ph4cjpt1OCuSAoVZ+1+VqIPr01eKnPeh1 RLwPM19q4DNMFYwVMZUD0xYTfE7SY0hl75HL973mtG6X8SRpVjN3e6CRAiUWj4wYiwFv +/JXYQwFt1JrHIactjNuwfLzLl22Ziie/NVbporKzcBIEAB3meEkR8cJuudtzyYBVurq KIpHnwBRGOfVDOrbaFH3tsJyKtVO4GbiJ4B37zLjLxidib7NkerFG2w522cnTQUFVD3U 6f1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=kmPk7Yrk4RmMN/ueuhHfghA+uPwsPKD+8o9VynDHHco=; b=VEqWGwI+AXchWmO8ixgd2b6xN+3OrGJxZ6OyroSnoalBHHKcLTFf6a7jtrFiiEgQoA zJdK8uE+eXPppQGY0YiSX06k/umkFLRv9GccdQ4MZI55fhQNz/CXmwhuBNbyj54Vv4Ap jKIfOvMo5V74XxxAYMlo1CmC8F75wNokdj0yGrL0IJszSYHiPdNmangUGPfjHZuX6FoV 3gC7g4gEB+uXTyhxi19TnIc8h+SBmIscXZzmIu51VOcACwVefGml/aGuE3z7KEOoclC7 nY/IqxPqogElVEJxub94F8o5MMp5OUl/Ltl//qEvYll7qJpQv9QMKaFc4cYlnfSuQNwr 0snQ== X-Gm-Message-State: AOPr4FV81iNPJJz14xbioFu1+Bp2tA2kL6XYCx+eHu4glP1U9BIGSK7+BqgIod9boNPNR4i1zqMb7+VTQ/cWIQ== X-Received: by 10.60.117.66 with SMTP id kc2mr5368693oeb.29.1460705850879; Fri, 15 Apr 2016 00:37:30 -0700 (PDT) MIME-Version: 1.0 Sender: hedhman@gmail.com Received: by 10.202.225.213 with HTTP; Fri, 15 Apr 2016 00:37:11 -0700 (PDT) In-Reply-To: References: From: Niclas Hedhman Date: Fri, 15 Apr 2016 15:37:11 +0800 X-Google-Sender-Auth: Or06kn5__FaaQQ3HmjcVGE10UxI Message-ID: Subject: Re: UseDefaults with custom default value? To: dev Content-Type: multipart/alternative; boundary=047d7b41889f5d024b0530811590 --047d7b41889f5d024b0530811590 Content-Type: text/plain; charset=UTF-8 No, I don't think this has been implemented. A neat idea idea, though. Add a Jira if you want to see it implemented (or implement it for us ;-) ) On Fri, Apr 15, 2016 at 3:11 PM, zhuangmz08 wrote: > Hi, > Could I define default value where I declare the Property, such as: > > > public interface ABC { > @UseDefaults(value="127.0.0.1") > Property hostname(); > > > @UseDefaults(value=8080) > Property port(); > } > > > Thanks a lot. -- Niclas Hedhman, Software Developer http://zest.apache.org - New Energy for Java --047d7b41889f5d024b0530811590--