Enables the use of a simple interface to add additional scalarTypes.
232233234235236237238
@SuppressWarnings({ "unchecked", "rawtypes" }) private ScalarType<?> wrapScalarType(Class<?> propertyType, ScalarType<?> scalarType, ScalarTypeConverter<?, ?> typeConverter) { if (typeConverter == null){ return scalarType; } return new ScalarTypeWrapper(propertyType, scalarType, typeConverter); }
313233343536373839
ScalarType<?> scalarType = typeManager.recursiveCreateScalarTypes(returnType); ReflectionBasedScalarTypeConverter r = new ReflectionBasedScalarTypeConverter(constructor, readers[0]); ScalarTypeWrapper st = new ScalarTypeWrapper(logicalType, scalarType, r); return st; }