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 "Nimish Hathalia (JIRA)" <ji...@apache.org> on 2006/03/21 08:11:58 UTC

[jira] Created: (AXIS2-505) ConfigurationContext pre-calculation in ServiceContext constructor

ConfigurationContext pre-calculation in ServiceContext constructor
------------------------------------------------------------------

         Key: AXIS2-505
         URL: http://issues.apache.org/jira/browse/AXIS2-505
     Project: Apache Axis 2.0 (Axis2)
        Type: Improvement
  Components: core  
    Versions: 0.94    
    Reporter: Nimish Hathalia
    Priority: Minor


org.apache.axis2.context.ServiceContext has
  public ConfigurationContext getConfigurationContext() {
        return (ConfigurationContext) parent.getParent();
    }

Instead of calculating the parent value in getConfigurationContext() (through parent.getParent()), 
can the parent.getParent() value be cached in constructor itself? This will save the cast when the 
getConfigurationContext() gets called from different places during serialization/de-serialization 
more than once.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS2-505) ConfigurationContext pre-calculation in ServiceContext constructor

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-505?page=all ]
     
Deepal Jayasinghe resolved AXIS2-505:
-------------------------------------

    Fix Version: 0.95
     Resolution: Fixed

> ConfigurationContext pre-calculation in ServiceContext constructor
> ------------------------------------------------------------------
>
>          Key: AXIS2-505
>          URL: http://issues.apache.org/jira/browse/AXIS2-505
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement
>   Components: core
>     Versions: 0.94
>     Reporter: Nimish Hathalia
>     Priority: Minor
>      Fix For: 0.95

>
> org.apache.axis2.context.ServiceContext has
>   public ConfigurationContext getConfigurationContext() {
>         return (ConfigurationContext) parent.getParent();
>     }
> Instead of calculating the parent value in getConfigurationContext() (through parent.getParent()), 
> can the parent.getParent() value be cached in constructor itself? This will save the cast when the 
> getConfigurationContext() gets called from different places during serialization/de-serialization 
> more than once.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira