Package org.oxerr.commons.ws.rs.bean
Class BeanUtils
- java.lang.Object
-
- org.oxerr.commons.ws.rs.bean.BeanUtils
-
public final class BeanUtils extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
BeanUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
copyProperties(T dest, Object orig, String... properties)
private static boolean
isCausedByIgnorableException(org.springframework.beans.InvalidPropertyException e)
static <T> T
patch(T dest, Object orig)
static <T> T
patch(T dest, Object orig, String... properties)
static <T> T
patchExclude(T dest, Object orig, Class<?>... excludedAnnotationTypes)
static <T> T
patchExclude(T dest, Object orig, String... excludedProperties)
static <T> T
patchExclude(T dest, Object orig, Set<Class<? extends Annotation>> excludedAnnotationTypes)
private static void
setPropertyValue(org.springframework.beans.BeanWrapper destBeanWrapper, org.springframework.beans.BeanWrapper origBeanWrapper, PropertyDescriptor pd)
-
-
-
Method Detail
-
patch
public static <T> T patch(T dest, Object orig)
-
patchExclude
public static <T> T patchExclude(T dest, Object orig, Set<Class<? extends Annotation>> excludedAnnotationTypes)
-
setPropertyValue
private static void setPropertyValue(org.springframework.beans.BeanWrapper destBeanWrapper, org.springframework.beans.BeanWrapper origBeanWrapper, PropertyDescriptor pd)
-
isCausedByIgnorableException
private static boolean isCausedByIgnorableException(org.springframework.beans.InvalidPropertyException e)
-
patchExclude
public static <T> T patchExclude(T dest, Object orig, Class<?>... excludedAnnotationTypes)
-
-