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
    boolean isProcessable​(java.lang.Class<?> beanClass, java.lang.reflect.ParameterizedType beanType)
    Checks it this extension is responsible for objects of the type beanType.
    boolean skip​(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, revert

    Methods 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: BeanConverterExtension
      Checks it this extension is responsible for objects of the type beanType.
      Parameters:
      beanClass - the Class of the type that will be processed by this extension.
      beanType - the ParameterizedType of 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 Type should be processed within this extension, false otherwise
    • skip

      public boolean skip​(java.lang.Class<?> beanClass, java.lang.reflect.ParameterizedType beanType)
      Description copied from interface: BeanConverterExtension
      Skip 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:
      skip in interface BeanConverterExtension
      Overrides:
      skip in class StandardBeanConverterExtension
      Parameters:
      beanClass - the Classof the type that will be skipped by this extension.
      beanType - the ParameterizedType that 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