Package io.beanmapper.core.unproxy
Class SkippingBeanUnproxy
java.lang.Object
io.beanmapper.core.unproxy.SkippingBeanUnproxy
- All Implemented Interfaces:
BeanUnproxy
Unproxy that allows you to configure classes to skip.
- Since:
- Jun 29, 2015
- Author:
- Jeroen van Schagen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
setDelegate
(BeanUnproxy delegate) Change the underlying delegate bean unproxy.final SkippingBeanUnproxy
Add classes to skip while unproxying to prevent failing of the BeanMapper while mapping proxy classes or classes containing synthetic fields (Like ENUM types).Class<?>
Removes any potential proxy classes.
-
Constructor Details
-
SkippingBeanUnproxy
-
-
Method Details
-
unproxy
Removes any potential proxy classes.- Specified by:
unproxy
in interfaceBeanUnproxy
- Parameters:
beanClass
- the bean proxy (could be proxied)- Returns:
- the unproxied class
-
skip
Add classes to skip while unproxying to prevent failing of the BeanMapper while mapping proxy classes or classes containing synthetic fields (Like ENUM types).- Parameters:
clazz
- the class that is added to the list of skipped classes- Returns:
- this instance, for chaining
-
setDelegate
Change the underlying delegate bean unproxy.- Parameters:
delegate
- the delegate to set
-