[ 
https://issues.apache.org/jira/browse/TAP5-461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Howard M. Lewis Ship updated TAP5-461:
--------------------------------------

    Summary: Create a service that fits into the ComponentClassTransformWorker 
chain and can be configured to extract component meta-data from class 
annotations  (was: 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)

> Create a service that fits into the ComponentClassTransformWorker chain and 
> can be configured to extract component meta-data from class annotations
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 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.

Reply via email to