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

Sergey Beryozkin resolved CXF-5934.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.0
                   3.0.2
                   2.7.13
         Assignee: Sergey Beryozkin

Sounds good, please let me know if you spot few more extension points :-)

> Make WadlGenerator more easily extensible
> -----------------------------------------
>
>                 Key: CXF-5934
>                 URL: https://issues.apache.org/jira/browse/CXF-5934
>             Project: CXF
>          Issue Type: Improvement
>    Affects Versions: 3.0.1
>            Reporter: Romain Manni-Bucau
>            Assignee: Sergey Beryozkin
>             Fix For: 2.7.13, 3.0.2, 3.1.0
>
>
> Trying to extend wadl generator is a pain today (= implies duplication). 
> Would be great to get more protected method to do it faster.
> Here some of them (well the one I hoped ;)):
> * preEndMethod: in 
> org.apache.cxf.jaxrs.model.wadl.WadlGenerator#handleOperation before writing 
> </method>. That's basically the symmetric of 
> org.apache.cxf.jaxrs.model.wadl.WadlGenerator#startMethodTag
> * startMethodTag should be IMO protected too
> * pre/post <request />, <response />, <resource /> (startResourceTag 
> protected for pre part)
> Basically idea is to be able to add before or after playing with super:
> {code}
> public class MyWadlGenerator extends WadlGenerator {
>     @Override
>    protected void startResourceTag(StringBuilder sb, Class<?> serviceClass, 
> String path) {
>          super.startResourceTag(sb, serviceClass, path);
>         sb.append(...);
>    }
> }
> {code}
> Personally I desire it for resources and methods but request and response 
> would be nice to have.
> PS: handleGrammars is nice for its pupose IMO



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to