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 Details

    • DefaultRuleCompilerListenersFactory

      public DefaultRuleCompilerListenersFactory()
  • Method Details

    • getSupportedTypes

      public Collection<Class<?>> getSupportedTypes()
    • setSupportedTypes

      public void setSupportedTypes(Collection<Class<?>> supportedTypes)
    • getApplicationContext

      protected org.springframework.context.ApplicationContext getApplicationContext()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • loadListeners

      protected Map<Class<?>,List<Object>> loadListeners()
    • registerListenersForType

      protected List<Object> registerListenersForType(List<RuleCompilerListenerDefinition> listenerDefinitions, Class<?> type)
    • getListeners

      public <T> List<T> getListeners(Class<T> listenerType)
      Description copied from interface: RuleCompilerListenersFactory
      Returns instances of listeners for a specific type.
      Specified by:
      getListeners in interface RuleCompilerListenersFactory
      Parameters:
      listenerType - - the type of the listeners
      Returns:
      the listeners