axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] [Created] (AXIS-2881) Reduce coupling between org.apache.axis.client.Stub and generated code
Date Sun, 18 Nov 2012 08:36:12 GMT
Andreas Veithen created AXIS-2881:

             Summary: Reduce coupling between org.apache.axis.client.Stub and generated code
                 Key: AXIS-2881
             Project: Axis
          Issue Type: Task
          Components: Basic Architecture
            Reporter: Andreas Veithen
            Priority: Minor
             Fix For: 1.5

org.apache.axis.client.Stub has several protected attributes that are set using methods declared
by Stub and that are used in the generated code to configure the Call. The generated code
looks as follows (see the createCall method):

            org.apache.axis.client.Call _call = super._createCall();
            if (super.maintainSessionSet) {
            if (super.cachedUsername != null) {
            if (super.cachedPassword != null) {
            if (super.cachedEndpoint != null) {
            if (super.cachedTimeout != null) {
            if (super.cachedPortName != null) {
            java.util.Enumeration keys = super.cachedProperties.keys();
            while (keys.hasMoreElements()) {
                java.lang.String key = (java.lang.String) keys.nextElement();
                _call.setProperty(key, super.cachedProperties.get(key));

This code could actually be included in Stub#_createCall (as noted in a TODO item in that
method), and the attributes in the Stub class could be made private. This would reduce the
coupling between the Stub class and the generated code. E.g. the usage of as
the type of the cachedEndpoint attribute causes issues for non-HTTP URLs because of the requirement
to configure a custom URLStreamHandler. This could be easily fixed by replacing
with (or String). However, because of the strong coupling with the generated
code, this is not possible without breaking compatibility with code generated by previous
Axis versions. Therefore this can only be changed in the next major release.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message