Class DefaultSnListenerFactory
java.lang.Object
de.hybris.platform.searchservices.core.service.impl.DefaultSnListenerFactory
- All Implemented Interfaces:
SnListenerFactory,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
public class DefaultSnListenerFactory
extends Object
implements SnListenerFactory, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Default implementation of
SnListenerFactory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected org.springframework.context.ApplicationContext<T> List<T>getListeners(SnContext context, Class<T> listenerType) Returns instances of listeners for a specific type.Collection<Class<?>>protected voidprotected <T> voidloadListeners(List<T> listeners, List<String> beanNames, Class<T> listenerType) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetSupportedTypes(Collection<Class<?>> supportedTypes)
-
Constructor Details
-
DefaultSnListenerFactory
public DefaultSnListenerFactory()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getListeners
Description copied from interface:SnListenerFactoryReturns instances of listeners for a specific type.- Specified by:
getListenersin interfaceSnListenerFactory- Parameters:
context- - the contextlistenerType- - the type of the listeners- Returns:
- the listeners
-
loadGlobalListeners
protected void loadGlobalListeners() -
loadListeners
-
getSupportedTypes
-
setSupportedTypes
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
getGlobalListeners
-