protected void loadAegisTypeClassAndRegister(Class<?> typeClazz, Class<?> aegisTypeClass, QName qName, TypeMapping typeMapping) { try { AegisType aegisType = instatiateAegisType(aegisTypeClass); typeMapping.register(typeClazz, qName, aegisType); } catch (Exception e) { log.warn("Type \"{}\" registration failed!", typeClazz.getName(), e); } }
private static void defaultRegister(TypeMapping tm, boolean defaultNillable, Class<?> class1, QName name, AegisType type) { if (!defaultNillable) { type.setNillable(false); } tm.register(class1, name, type); }
protected void loadAegisTypeClassAndRegister(Class<?> aegisTypeClass, TypeMapping typeMapping) { try { AegisType aegisType = instatiateAegisType(aegisTypeClass); typeMapping.register(aegisType); } catch (Exception e) { log.warn("Aegis type \"{}\" registration failed!", aegisTypeClass.getName(), e); } }
protected void loadAegisTypeClassAndRegister(String typeClassName, Class<?> aegisTypeClass, QName qName, TypeMapping typeMapping) { try { Class<?> typeClazz = Thread.currentThread().getContextClassLoader().loadClass(typeClassName); AegisType aegisType = instatiateAegisType(aegisTypeClass); typeMapping.register(typeClazz, qName, aegisType); } catch (Exception e) { log.warn("Type \"{}\" registration failed!", typeClassName, e); } }
private static void defaultRegister(TypeMapping tm, boolean defaultNillable, Class<?> class1, QName name, AegisType type) { if (!defaultNillable) { type.setNillable(false); } tm.register(class1, name, type); }
protected void loadAegisTypeClassAndRegister(String aegisTypeClassName, TypeMapping typeMapping) { try { Class<?> clazz = Thread.currentThread().getContextClassLoader().loadClass(aegisTypeClassName); AegisType aegisType = instatiateAegisType(clazz); typeMapping.register(aegisType); } catch (Exception e) { log.warn("Aegis type \"{}\" registration failed!", aegisTypeClassName, e); } }
protected void loadAegisTypeClassAndRegister(Class<?> aegisTypeClass, TypeMapping typeMapping) { try { AegisType aegisType = instatiateAegisType(aegisTypeClass); typeMapping.register(aegisType); } catch (Exception e) { log.warn("Aegis type \"{}\" registration failed!", aegisTypeClass.getName(), e); } }
protected void loadAegisTypeClassAndRegister(String typeClassName, Class<?> aegisTypeClass, QName qName, TypeMapping typeMapping) { try { Class<?> typeClazz = Thread.currentThread().getContextClassLoader().loadClass(typeClassName); AegisType aegisType = instatiateAegisType(aegisTypeClass); typeMapping.register(typeClazz, qName, aegisType); } catch (Exception e) { log.warn("Type \"{}\" registration failed!", typeClassName, e); } }
protected void loadAegisTypeClassAndRegister(Class<?> typeClazz, Class<?> aegisTypeClass, QName qName, TypeMapping typeMapping) { try { AegisType aegisType = instatiateAegisType(aegisTypeClass); typeMapping.register(typeClazz, qName, aegisType); } catch (Exception e) { log.warn("Type \"{}\" registration failed!", typeClazz.getName(), e); } }
protected void loadAegisTypeClassAndRegister(String aegisTypeClassName, TypeMapping typeMapping) { try { Class<?> clazz = Thread.currentThread().getContextClassLoader().loadClass(aegisTypeClassName); AegisType aegisType = instatiateAegisType(clazz); typeMapping.register(aegisType); } catch (Exception e) { log.warn("Aegis type \"{}\" registration failed!", aegisTypeClassName, e); } }
tm.register(superType); this.info.setExtension(true);
tm.register(superType); this.info.setExtension(true);
/** * Get the <code>AegisType</code> of the elements in the array. This is only used for writing an array. * When reading the type is solely determined by the required arrayType soap attribute. */ public AegisType getComponentType() { Class<?> compType = getTypeClass().getComponentType(); AegisType type; if (componentName == null) { type = getTypeMapping().getType(compType); } else { type = getTypeMapping().getType(componentName); // We couldn't find the type the user specified. One is created // below instead. if (type == null) { LOG.finest("Couldn't find array component type " + componentName + ". Creating one instead."); } } if (type == null) { type = getTypeMapping().getTypeCreator().createType(compType); getTypeMapping().register(type); } return type; }
/** * Get the <code>AegisType</code> of the elements in the array. This is only used for writing an array. * When reading the type is solely determined by the required arrayType soap attribute. */ public AegisType getComponentType() { Class<?> compType = getTypeClass().getComponentType(); AegisType type; if (componentName == null) { type = getTypeMapping().getType(compType); } else { type = getTypeMapping().getType(componentName); // We couldn't find the type the user specified. One is created // below instead. if (type == null) { LOG.finest("Couldn't find array component type " + componentName + ". Creating one instead."); } } if (type == null) { type = getTypeMapping().getTypeCreator().createType(compType); getTypeMapping().register(type); } return type; }
/** * Get the <code>AegisType</code> of the elements in the array. * * @return */ public AegisType getComponentType() { Class<?> compType = getTypeClass().getComponentType(); AegisType type; if (componentName == null) { type = getTypeMapping().getType(compType); } else { type = getTypeMapping().getType(componentName); // We couldn't find the type the user specified. One is created // below instead. if (type == null) { LOG.finest("Couldn't find array component type " + componentName + ". Creating one instead."); } } if (type == null) { type = getTypeMapping().getTypeCreator().createType(compType); getTypeMapping().register(type); } return type; }
/** * Get the <code>AegisType</code> of the elements in the array. * * @return */ public AegisType getComponentType() { Class<?> compType = getTypeClass().getComponentType(); AegisType type; if (componentName == null) { type = getTypeMapping().getType(compType); } else { type = getTypeMapping().getType(componentName); // We couldn't find the type the user specified. One is created // below instead. if (type == null) { LOG.finest("Couldn't find array component type " + componentName + ". Creating one instead."); } } if (type == null) { type = getTypeMapping().getTypeCreator().createType(compType); getTypeMapping().register(type); } return type; }
tm.register(type);
@Override public void writeObject(Object object, MessageWriter writer, Context context) throws DatabindingException { if (null == object) { MessageWriter nilWriter = writer.getAttributeWriter(XSI_NIL); nilWriter.writeValue("true"); nilWriter.close(); } else { AegisType type = determineType(context, object.getClass()); if (null == type) { TypeMapping tm = context.getTypeMapping(); if (tm == null) { tm = getTypeMapping(); } type = tm.getTypeCreator().createType(object.getClass()); tm.register(type); } writer.writeXsiType(type.getSchemaType()); boolean nextIsBeanType = type instanceof BeanType; if (nextIsBeanType) { ((BeanType)type).writeObjectFromObjectType(object, writer, context, true); } else { type.writeObject(object, writer, context); } } }
@Override public void writeObject(Object object, MessageWriter writer, Context context) throws DatabindingException { if (null == object) { MessageWriter nilWriter = writer.getAttributeWriter(XSI_NIL); nilWriter.writeValue("true"); nilWriter.close(); } else { AegisType type = determineType(context, object.getClass()); if (null == type) { TypeMapping tm = context.getTypeMapping(); if (tm == null) { tm = getTypeMapping(); } type = tm.getTypeCreator().createType(object.getClass()); tm.register(type); } writer.writeXsiType(type.getSchemaType()); boolean nextIsBeanType = type instanceof BeanType; if (nextIsBeanType) { ((BeanType)type).writeObjectFromObjectType(object, writer, context, true); } else { type.writeObject(object, writer, context); } } }