Return-Path: Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: (qmail 16023 invoked from network); 19 May 2010 00:01:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 May 2010 00:01:23 -0000 Received: (qmail 29019 invoked by uid 500); 19 May 2010 00:01:22 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 28986 invoked by uid 500); 19 May 2010 00:01:22 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 28979 invoked by uid 99); 19 May 2010 00:01:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 May 2010 00:01:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 May 2010 00:01:20 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4J00xjc027995 for ; Wed, 19 May 2010 00:00:59 GMT Message-ID: <10267294.2021274227258992.JavaMail.jira@thor> Date: Tue, 18 May 2010 20:00:58 -0400 (EDT) From: "Howard M. Lewis Ship (JIRA)" To: commits@tapestry.apache.org Subject: [jira] Assigned: (TAP5-461) It is very common to map the value attribute of a type annotation as a meta-data property; it would be nice if there was an easy way to do this, via contributing the annotation type and meta-data key In-Reply-To: <1358019232.1232672879551.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TAP5-461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Howard M. Lewis Ship reassigned TAP5-461: ----------------------------------------- Assignee: Howard M. Lewis Ship > It is very common to map the value attribute of a type annotation as a meta-data property; it would be nice if there was an easy way to do this, via contributing the annotation type and meta-data key > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: TAP5-461 > URL: https://issues.apache.org/jira/browse/TAP5-461 > Project: Tapestry 5 > Issue Type: New Feature > Components: tapestry-core > Affects Versions: 5.1.0.0 > Reporter: Howard M. Lewis Ship > Assignee: Howard M. Lewis Ship > > In other words, if we have Moe, Larry and Curly and they all look like this: > public class MoeWorker implements ComponentClassTransformWorker > { > public void transform(ClassTransformation transformation, MutableComponentModel model) > { > Moe annotation = transformation.getAnnotation(Moe.class); > if (annotation != null) > model.setMeta("meta-data.moe", annotation.value()); > } > } > It would be nice if we could just make a contribution: > configuration.add("meta-data.moe", Moe.class); > For each of Moe, Larry and Curly instead. This would apply only when the annotation has a single attribute whose type is String. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.