You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2016/01/24 16:34:41 UTC

[jira] [Updated] (AXIS2-5375) Some of the ADB generated methods can be moved to framework level.

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

Andreas Veithen updated AXIS2-5375:
-----------------------------------
    Fix Version/s:     (was: 1.7.0)
                   1.7.1

> Some of the ADB generated methods can be moved to framework level. 
> -------------------------------------------------------------------
>
>                 Key: AXIS2-5375
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5375
>             Project: Axis2
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: 1.5.6, 1.6.2
>            Reporter: Sagara Gunathunga 
>            Assignee: Sagara Gunathunga 
>             Fix For: 1.7.1
>
>
> ADB codegen always generate following constant methods for every ADBBean class. 
> getOMElement
> serialize
> generatePrefix
> writeStartElement
> writeAttribute
> writeAttribute
> writeQNameAttribute
> writeQName
> registerPrefix
> Non of the above methods contains bean specific logic and same set of methods repeat on every generated bean class. It is possible to move these methods into framework level so that they will not generate with every ADBBean.  It is possible to introduce an abstract class called AbstractADBBean which contains above methods, in future every non-inherited ADBBean today will be extended from this AbstractADBBean. 
> This improvement simplify size of generated codes and also improve code readability.    



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org