Examples of DozerPropertyDescriptor


Examples of org.dozer.propertydescriptor.DozerPropertyDescriptor

    DozerPropertyDescriptor dpd = getDestPropertyDescriptor(runtimeDestClass);
    return ((GetterSetterPropertyDescriptor) dpd).getWriteMethodPropertyType();
  }

  public Class<?> getGenericType(Class<?> runtimeDestClass) {
    DozerPropertyDescriptor propertyDescriptor = getDestPropertyDescriptor(runtimeDestClass);
    return propertyDescriptor.genericType();
  }
View Full Code Here

Examples of org.dozer.propertydescriptor.DozerPropertyDescriptor

      MappingUtils.throwMappingException("dest field must be specified");
    }
  }

  protected DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass) {
    DozerPropertyDescriptor result = this.srcPropertyDescriptorMap.get(runtimeSrcClass);
    if (result == null) {
      String srcFieldMapGetMethod = getSrcFieldMapGetMethod();
      String srcFieldMapSetMethod = getSrcFieldMapSetMethod();
      DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeSrcClass,
              getSrcFieldTheGetMethod(), getSrcFieldTheSetMethod(),
              srcFieldMapGetMethod, srcFieldMapSetMethod, isSrcFieldAccessible(), isSrcFieldIndexed(), getSrcFieldIndex(),
              getSrcFieldName(), getSrcFieldKey(), isSrcSelfReferencing(), getDestFieldName(), getSrcDeepIndexHintContainer(),
              getDestDeepIndexHintContainer(), classMap.getSrcClassBeanFactory());
      this.srcPropertyDescriptorMap.putIfAbsent(runtimeSrcClass, descriptor);
View Full Code Here

Examples of org.dozer.propertydescriptor.DozerPropertyDescriptor

      MappingUtils.throwMappingException(
              "getDestPropertyDescriptor received builder instead of concrete class - it's a bug, please post stack trace at https://github.com/DozerMapper/dozer or directly to dmitry@spikhalskiy.com ");
      return null;
    }

    DozerPropertyDescriptor result = this.destPropertyDescriptorMap.get(runtimeDestClass);
    if (result == null) {
      DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeDestClass,
            getDestFieldTheGetMethod(), getDestFieldTheSetMethod(), getDestFieldMapGetMethod(),
            getDestFieldMapSetMethod(), isDestFieldAccessible(), isDestFieldIndexed(), getDestFieldIndex(),
            getDestFieldName(), getDestFieldKey(), isDestSelfReferencing(), getSrcFieldName(),
            getSrcDeepIndexHintContainer(), getDestDeepIndexHintContainer(), classMap.getDestClassBeanFactory());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.