axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis MessageContext.java
Date Wed, 13 Jun 2001 21:07:40 GMT
gdaniels    01/06/13 14:07:40

  Modified:    java/src/org/apache/axis MessageContext.java
  Log:
  Use the engine's TypeMappingRegistry by default.
  
  Revision  Changes    Path
  1.36      +12 -4     xml-axis/java/src/org/apache/axis/MessageContext.java
  
  Index: MessageContext.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/MessageContext.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- MessageContext.java	2001/06/13 00:25:41	1.35
  +++ MessageContext.java	2001/06/13 21:07:37	1.36
  @@ -144,11 +144,19 @@
           mappingRegistry = reg;
       }
   
  +    /**
  +     * Get the currently in-scope type mapping registry.
  +     * 
  +     * By default, will return a reference to the AxisEngine's TMR until
  +     * someone sets our local one (usually as a result of setting the
  +     * serviceHandler).
  +     * 
  +     * @return the type mapping registry to use for this request.
  +     */
       public TypeMappingRegistry getTypeMappingRegistry() {
  -        if (mappingRegistry == null) {
  -            mappingRegistry = new TypeMappingRegistry();
  -            mappingRegistry.setParent(SOAPTypeMappingRegistry.getSingleton());
  -        }
  +        if (mappingRegistry == null)
  +            return axisEngine.getTypeMappingRegistry();
  +        
           return mappingRegistry;
       }
   
  
  
  

Mime
View raw message