private void generateMarshallers(final MarshallerGenerationCallback callback) { final Set<MetaClass> exposed = mappingContext.getDefinitionsFactory().getExposedClasses(); for (final MetaClass clazz : exposed) { mappingContext.registerGeneratedMarshaller(clazz.getFullyQualifiedName()); } final boolean lazyEnabled = CommonConfigAttribs.LAZY_LOAD_BUILTIN_MARSHALLERS.getBoolean(); for (final MetaClass cls : exposed) { final MetaClass compType = cls.getOuterComponentType(); final MappingDefinition definition = mappingContext.getDefinitionsFactory().getDefinition(compType); if (definition.getClientMarshallerClass() != null || definition.alreadyGenerated()) { continue; } if (target == MarshallerOutputTarget.Java && lazyEnabled && definition.isLazy()) { if (unlazyMarshallers.contains(compType.getFullyQualifiedName())) { definition.setLazy(false); } else { continue; } } addMarshaller(compType); callback.callback(compType); } }
private void generateMarshallers(final MarshallerGenerationCallback callback) { final Set<MetaClass> exposed = mappingContext.getDefinitionsFactory().getExposedClasses(); for (final MetaClass clazz : exposed) { mappingContext.registerGeneratedMarshaller(clazz.getFullyQualifiedName()); } final boolean lazyEnabled = CommonConfigAttribs.LAZY_LOAD_BUILTIN_MARSHALLERS.getBoolean(); for (final MetaClass cls : exposed) { final MetaClass compType = cls.getOuterComponentType(); final MappingDefinition definition = mappingContext.getDefinitionsFactory().getDefinition(compType); if (definition.getClientMarshallerClass() != null || definition.alreadyGenerated()) { continue; } if (target == MarshallerOutputTarget.Java && lazyEnabled && definition.isLazy()) { if (unlazyMarshallers.contains(compType.getFullyQualifiedName())) { definition.setLazy(false); } else { continue; } } addMarshaller(compType); callback.callback(compType); } }
getMarshallerMethod.append(Stmt.loadLiteral(null).returnValue()).finish(); if (CommonConfigAttribs.MAKE_DEFAULT_ARRAY_MARSHALLERS.getBoolean()) { for (final MetaClass arrayType : MarshallingGenUtil.getDefaultArrayMarshallers()) { addArrayMarshaller(arrayType, target == MarshallerOutputTarget.GWT);
getMarshallerMethod.append(Stmt.loadLiteral(null).returnValue()).finish(); if (CommonConfigAttribs.MAKE_DEFAULT_ARRAY_MARSHALLERS.getBoolean()) { for (final MetaClass arrayType : MarshallingGenUtil.getDefaultArrayMarshallers()) { addArrayMarshaller(arrayType, target == MarshallerOutputTarget.GWT);