Class InvalidateConverterRegistryListener
- java.lang.Object
-
- de.hybris.platform.servicelayer.event.impl.AbstractEventListener<InvalidateModelConverterRegistryEvent>
-
- de.hybris.platform.servicelayer.event.impl.InvalidateConverterRegistryListener
-
- All Implemented Interfaces:
java.util.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 toInvalidateModelConverterRegistryEvents and removes/refreshs the correspondingModelConverterif aComposedTypeis removed/changed in the persistence layer.
-
-
Constructor Summary
Constructors Constructor Description InvalidateConverterRegistryListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ConverterRegistrygetConverterRegistry()protected voidonEvent(InvalidateModelConverterRegistryEvent event)If 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
-
-
-
-
Method Detail
-
getConverterRegistry
public abstract ConverterRegistry getConverterRegistry()
- Returns:
- the
ConverterRegistry
-
onEvent
protected void onEvent(InvalidateModelConverterRegistryEvent event)
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)
-
-