[ 
https://issues.apache.org/jira/browse/ISIS-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414587#comment-13414587
 ] 

Dan Haywood edited comment on ISIS-235 at 7/15/12 8:27 AM:
-----------------------------------------------------------

1. Navigate>Open Type: @Named annotation (org.apache.isis.applib.annotation)

2. on @Named, Search > References > Workspace   : 
NamedAnnotationOnParameterFacetFactory... locate in package explorer

3. Copy/paste NamedFacetAnnotationOnParameter & 
NamedAnnotationOnParameterFacetFactory into a new, similar package.  Rename (eg 
NamedFacetUsingParanamer & NamedAnnotationUsingParanamerFacetFactory)

4. Rework implementation of processParams() in 
NamedAnnotationUsingParanamerFacetFactory to use the paranamer API

5. On the original NamedAnnotationOnParameterFacetFactory: Search > References 
> Workspace   : ProgrammingModelFacetsJava5

6. Register in ProgrammingModelFacets5

7. Write a unit test.

                
      was (Author: danhaywood):
    1. Navigate>Open Type: @Named annotation (org.apache.isis.applib.annotation)

2. on @Named, Search > References > Workspace   : 
NamedAnnotationOnParameterFacetFactory... locate in package explorer

3. Copy/paste NamedFacetAnnotationOnParameter & 
NamedAnnotationOnParameterFacetFactory into a new, similar package.  Rename (eg 
NamedFacetUsingParanamer & NamedAnnotationUsingParanamerFacetFactory)

4. Rework implementation of processParams() in 
NamedAnnotationUsingParanamerFacetFactory to use the paranamer API

5. On the original NamedAnnotationOnParameterFacetFactory: Search > References 
> Workspace   : ProgrammingModelFacetsJava5

6. Register in ProgrammingModelFacets5

                  
> Remove dependency on @Named to return parameter name
> ----------------------------------------------------
>
>                 Key: ISIS-235
>                 URL: https://issues.apache.org/jira/browse/ISIS-235
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jeroen van der Wal
>            Priority: Minor
>
> Parameter names have to be annotated with @Named to have the Isis show the 
> parameter name of an action in the viewers and restful api. Implementing 
> Paranamer [1] in Isis solves the problem that currently Java reflection does 
> not return parameter names. The current behaviour of @Named should not change 
> and will override the parameter name.
> [1] http://paranamer.codehaus.org/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to