Class JavaTimeExtension
java.lang.Object
de.ppi.deepsampler.persistence.bean.ext.StandardBeanConverterExtension
de.ppi.deepsampler.persistence.bean.ext.JavaTimeExtension
- All Implemented Interfaces:
BeanConverterExtension
public class JavaTimeExtension extends StandardBeanConverterExtension
-
Constructor Summary
Constructors Constructor Description JavaTimeExtension() -
Method Summary
Modifier and Type Method Description booleanisProcessable(java.lang.Class<?> beanClass, java.lang.reflect.ParameterizedType beanType)Checks it this extension is responsible for objects of the type beanType.booleanskip(java.lang.Class<?> beanClass, java.lang.reflect.ParameterizedType beanType)Skip the conversion of all beans of the given type.Methods inherited from class de.ppi.deepsampler.persistence.bean.ext.StandardBeanConverterExtension
convert, revertMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JavaTimeExtension
public JavaTimeExtension()
-
-
Method Details
-
isProcessable
public boolean isProcessable(java.lang.Class<?> beanClass, java.lang.reflect.ParameterizedType beanType)Description copied from interface:BeanConverterExtensionChecks it this extension is responsible for objects of the type beanType.- Parameters:
beanClass- theClassof the type that will be processed by this extension.beanType- theParameterizedTypeof the type that will be processed by this extension. This parameter can only be supplied if the type is actually a generic type. If this is not the case, beanType is null.- Returns:
- true if the
Typeshould be processed within this extension, false otherwise
-
skip
public boolean skip(java.lang.Class<?> beanClass, java.lang.reflect.ParameterizedType beanType)Description copied from interface:BeanConverterExtensionSkip the conversion of all beans of the given type. Skipped objects will be sent directly to the underlying persistence api. Therefore the persistence api must be able to handle the serialization / deserialization.- Specified by:
skipin interfaceBeanConverterExtension- Overrides:
skipin classStandardBeanConverterExtension- Parameters:
beanClass- theClassof the type that will be skipped by this extension.beanType- theParameterizedTypethat will be skipped by this extension. This parameter can only be supplied if the type is actually a generic type. If this is not the case, beanType is null.- Returns:
- true if the Type should be skipped
-