Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 61AA8200BBA for ; Sat, 22 Oct 2016 05:50:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 59907160AE9; Sat, 22 Oct 2016 03:50:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 93BCE160AE8 for ; Sat, 22 Oct 2016 05:49:59 +0200 (CEST) Received: (qmail 53166 invoked by uid 500); 22 Oct 2016 03:49:58 -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 53153 invoked by uid 99); 22 Oct 2016 03:49:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Oct 2016 03:49:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 69ABF2C0087 for ; Sat, 22 Oct 2016 03:49:58 +0000 (UTC) Date: Sat, 22 Oct 2016 03:49:58 +0000 (UTC) From: "Niclas Hedhman (JIRA)" To: dev@zest.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ZEST-179) Mechanism to declare Defaults factories MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 22 Oct 2016 03:50:00 -0000 Niclas Hedhman created ZEST-179: ----------------------------------- Summary: Mechanism to declare Defaults factories Key: ZEST-179 URL: https://issues.apache.org/jira/browse/ZEST-179 Project: Zest Issue Type: New Feature Reporter: Niclas Hedhman Priority: Minor Currently, it is possible to declare a default value for properties during assembly. {{code}} module.forMixin( Abc.class ).declareDefaults().someProperty().set( 123 ); {{code}} But there is no way to do this for Property declarations that take ValueComposites as their type, since the Runtime has not be activated yet. But if it was possible to declare a factory, {{code}} module.forMixin( Abc.class ).declareDefaultsFactory(MyFactory.class, 123, "habba"); {{code}} The optional arguments are Uses declarations and the MyFactory is either an Object or a TransientComposite, both capable of Uses injections. -- This message was sent by Atlassian JIRA (v6.3.4#6332)