Package de.hybris.platform.servicelayer.interceptor
package de.hybris.platform.servicelayer.interceptor
-
ClassDescriptiontest-class for EnumerationPrepareInterceptor.test-class for EnumerationValidator.GenderEnum - StubInitDefaultsInterceptor<MODEL>The InitDefaultsInterceptor is called when a model is filled with its default values.Interceptors are called during different times of the life cycle of any model.Context provided to all
Interceptorinstances.Represents a transient storage for a singleInterceptorContext.Tests PLA-10368.
Test uses test implementation ofModelService:de.hybris.platform.servicelayer.interceptor.InterceptorTestModelService.
This test service knows only a simpleInterceptorRegistry, which is registered only for the purpose of this test.Exception which is thrown from anInterceptor.Abstraction of the interceptor registry responsible for getting life-cycle handle interceptors for mapped jalo item by their type code, seeInterceptorMapping.getTypeCode()Testing the order of the registered Interceptors and the dependency of their typecode.LoadInterceptor<MODEL>The LoadInterceptor is called whenever a model is loaded from the database.Specifies what operation should be performed with a particular model instance.PrepareInterceptor<MODEL>The PrepareInterceptor is called before it is validated by theValidateInterceptors and before the model is saved to the database.RemoveInterceptor<MODEL>The RemoveInterceptor is called before a model is removed from the database.This junit test tests the PartOf remove interceptor and the partOf save interceptorValidateInterceptor<MODEL>The ValidateInterceptor is called after the model is been prepared by all neededPrepareInterceptors and before the model is saved to the database.Exception thrown when some error in validation configuration is detected.