Class InvalidateConverterRegistryListener
java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<InvalidateModelConverterRegistryEvent>
de.hybris.platform.servicelayer.event.impl.InvalidateConverterRegistryListener
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<InvalidateModelConverterRegistryEvent>
public abstract class InvalidateConverterRegistryListener
extends AbstractEventListener<InvalidateModelConverterRegistryEvent>
Listen to
InvalidateModelConverterRegistryEvents and removes/refreshs the corresponding
ModelConverter if a ComposedType is removed/changed in the persistence layer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ConverterRegistryprotected voidIf theAbstractEventis anInvalidateModelConverterRegistryEventthe registeredModelConverterto theComposedTypecode from the event is removed.Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
Constructor Details
-
InvalidateConverterRegistryListener
public InvalidateConverterRegistryListener()
-
-
Method Details
-
getConverterRegistry
- Returns:
- the
ConverterRegistry
-
onEvent
If theAbstractEventis anInvalidateModelConverterRegistryEventthe registeredModelConverterto theComposedTypecode from the event is removed.- Specified by:
onEventin classAbstractEventListener<InvalidateModelConverterRegistryEvent>- Parameters:
event- ignored all events except theInvalidateModelConverterRegistryEventwhich contains the typecode of aComposedType.- See Also:
-
ApplicationListener.onApplicationEvent(ApplicationEvent)
-