Class DefaultRuleCompilerListenersFactory
java.lang.Object
de.hybris.platform.ruleengineservices.compiler.impl.DefaultRuleCompilerListenersFactory
- All Implemented Interfaces:
RuleCompilerListenersFactory,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class DefaultRuleCompilerListenersFactory
extends Object
implements RuleCompilerListenersFactory, org.springframework.context.ApplicationContextAware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.context.ApplicationContext<T> List<T>getListeners(Class<T> listenerType) Returns instances of listeners for a specific type.Collection<Class<?>>registerListenersForType(List<RuleCompilerListenerDefinition> listenerDefinitions, Class<?> type) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetSupportedTypes(Collection<Class<?>> supportedTypes)
-
Constructor Details
-
DefaultRuleCompilerListenersFactory
public DefaultRuleCompilerListenersFactory()
-
-
Method Details
-
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
-
loadListeners
-
registerListenersForType
protected List<Object> registerListenersForType(List<RuleCompilerListenerDefinition> listenerDefinitions, Class<?> type) -
getListeners
Description copied from interface:RuleCompilerListenersFactoryReturns instances of listeners for a specific type.- Specified by:
getListenersin interfaceRuleCompilerListenersFactory- Parameters:
listenerType- - the type of the listeners- Returns:
- the listeners
-