You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Massimo Lusetti (JIRA)" <ji...@apache.org> on 2009/01/23 09:51:02 UTC
[jira] Commented: (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
[ https://issues.apache.org/jira/browse/TAP5-461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12666452#action_12666452 ]
Massimo Lusetti commented on TAP5-461:
--------------------------------------
Nice! I wanted this for a long time!
> 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
>
> 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.