diff --git a/deepsampler-core/src/main/java/de/ppi/deepsampler/core/api/Matchers.java b/deepsampler-core/src/main/java/de/ppi/deepsampler/core/api/Matchers.java index 796e9937..b0a4abe0 100644 --- a/deepsampler-core/src/main/java/de/ppi/deepsampler/core/api/Matchers.java +++ b/deepsampler-core/src/main/java/de/ppi/deepsampler/core/api/Matchers.java @@ -40,7 +40,7 @@ * There are two things you have to care about when using matchers: *
*
- * {@link MyInstantSerializer} writes an {@link Instant} in a JSON-file and adds a suffix {@link MyInstantSerializer#TEST_SUFFIX_TO_ENSURE_THAT_SERIALZER_WAS_USED}
+ * {@link MyInstantSerializer} writes an {@link Instant} in a JSON-file and adds a suffix {@link MyInstantSerializer#TEST_SUFFIX_TO_ENSURE_THAT_SERIALIZER_WAS_USED}
* to the persistent Instant. This suffix is used by this {@link MyInstantDeserializer} to ensure that the {@link Instant} was saved by {@link MyInstantSerializer}
* and not by the standard Jackson-Serializer or a standard {@link de.ppi.deepsampler.persistence.model.PersistentBean}.
*/
@@ -23,13 +23,13 @@ public class MyInstantDeserializer extends JsonDeserializer
- * The serialzer writes an {@link Instant} in a JSON-file and adds a suffix {@link MyInstantSerializer#TEST_SUFFIX_TO_ENSURE_THAT_SERIALZER_WAS_USED}
+ * The serializer writes an {@link Instant} in a JSON-file and adds a suffix {@link MyInstantSerializer#TEST_SUFFIX_TO_ENSURE_THAT_SERIALIZER_WAS_USED}
* to the persistent Instant. This suffix is used by {@link MyInstantDeserializer} to ensure that the {@link Instant} was saved by this {@link JsonSerializer}
* and not by the standard Jackson-Serializer or a standard {@link de.ppi.deepsampler.persistence.model.PersistentBean}.
*/
public class MyInstantSerializer extends JsonSerializer
- * As this is a highly generic and complicated process deepsampler offers extensions
+ * As this is a highly generic and complicated process DeepSampler offers extensions
* for this BeanFactory the {@link BeanConverterExtension}. To add an extension you have
- * to specifiy it when recording/loading samples with {@link de.ppi.deepsampler.persistence.api.PersistentSampler}
+ * to specify it when recording/loading samples with {@link de.ppi.deepsampler.persistence.api.PersistentSampler}
* ({@link de.ppi.deepsampler.persistence.api.PersistentSampleManager#addBeanExtension(BeanConverterExtension)}.
*
* The extension will be used for all processed objects (including embedded objects).
*
* When you write an extension you firstly have to define for which type you
* want to extend the behavior of the original BeanFactory. For this purpose you
@@ -56,8 +51,8 @@ public interface BeanConverterExtension {
* Checks it this extension is responsible for objects of the type beanType.
*
* @param beanClass the {@link Class} of the type that will be processed by this extension.
- * @param beanType the {@link 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.
+ * @param beanType the {@link 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.
* @return true if the {@link Type} should be processed within this extension, false otherwise
*/
@@ -68,8 +63,8 @@ public interface BeanConverterExtension {
* persistence api. Therefore the persistence api must be able to handle the serialization / deserialization.
*
* @param beanClass the {@link Class}of the type that will be skipped by this extension.
- * @param beanType the {@link 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.
+ * @param beanType the {@link 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.
* @return true if the Type should be skipped
*/
boolean skip(Class> beanClass, ParameterizedType beanType);
@@ -77,13 +72,13 @@ public interface BeanConverterExtension {
/**
* Conversion logic for the type you defined to process and not to skip.
* Converts an original bean to the {@link PersistentBean} which will be sent to the persistence api.
- *
+ *
* It is also possible to convert bean to any other data structure if the underlying persistence api is fully capable of
* handling the data structure on its own.
*
- * @param originalBean the original bean that is supposed to be converted to a serializable data structure, most likely a {@link PersistentBean}.
- * @param beanType the {@link ParameterizedType} that will be used for the conversion. This parameter can only be supplied
- * if the type is actually a generic type. If this is not the case, beanType is null.
+ * @param originalBean the original bean that is supposed to be converted to a serializable data structure, most likely a {@link PersistentBean}.
+ * @param beanType the {@link ParameterizedType} that will be used for the conversion. This parameter can only be supplied
+ * if the type is actually a generic type. If this is not the case, beanType is null.
* @param persistentBeanConverter the current {@link PersistentBeanConverter} that may be used to convert sub objects of bean.
* @return the generic data-structure for the bean
*/
@@ -93,18 +88,18 @@ public interface BeanConverterExtension {
* Conversion logic for the generic data-structure to the processed bean type.
* Reverts to the original Bean by converting the {@link PersistentBean}, which was deserialized by the underlying
* persistence api, to the original object.
- *
+ *
* It is also possible to deserialize other types then {@link PersistentBean} if the underlying persistence api is fully
* capable of deserializing this type. I.E. {@link java.util.List}s can be deserialized by Jackson (the default JSON persistence api)
* but the elements of the list might be generic {@link PersistentBean}s. The {@link CollectionExtension} would leave it to
* Jackson to deserialize the List, but it would iterate over that List to revert the {@link PersistentBean}s inside of that list.
*
- * @param persistentBean the generic bean
- * @param targetClass the {@link Class} of the type that will created from the persistentBean.
- * @param targetType the {@link ParameterizedType} fo the type that will be created from persistentBean, This parameter can only be supplied
- * if the type is actually a generic type. If this is not the case, beanType is null.
+ * @param persistentBean the generic bean
+ * @param targetClass the {@link Class} of the type that will created from the persistentBean.
+ * @param targetType the {@link ParameterizedType} fo the type that will be created from persistentBean, This parameter can only be supplied
+ * if the type is actually a generic type. If this is not the case, beanType is null.
* @param persistentBeanConverter the current {@link PersistentBeanConverter} that may be used to revert sub objects of persistentBean.
- * @param
- *
*
*
*