2 Replies Latest reply on Mar 6, 2007 4:17 AM by Heiko Braun

    EndpointMetaData#eagerInitializeTypes()

    Heiko Braun Master

      The folllowing code is taken from EndpointMetaData#eagerInitializeTypes:

       [...]
       String javaTypeName = tmMetaData.getJavaTypeName();
       QName xmlType = tmMetaData.getXmlType();
       if (xmlType != null)
       {
       List<Class> types = typeMapping.getJavaTypes(xmlType);
      
       boolean registered = false;
       for (Class current : types)
       {
       if (current.getName().equals(javaTypeName))
       {
       registered = true;
       break;
       }
       }
      
       if (registered == false)
       {
       // register type follows here
       [...]
      


      In which cases is type already known (registered = true;) and doesnt need to be registered?