@Override protected void onInit() { super.onInit(); this.applicationEventMulticaster = this.getBeanFactory() .getBean(AbstractApplicationContext.APPLICATION_EVENT_MULTICASTER_BEAN_NAME, ApplicationEventMulticaster.class); Assert.notNull(this.applicationEventMulticaster, "To use ApplicationListeners the 'applicationEventMulticaster' " + "bean must be supplied within ApplicationContext."); }
@Override protected void onInit() { super.onInit(); if (this.evaluationContext == null) { this.evaluationContext = ExpressionUtils.createStandardEvaluationContext(this.getBeanFactory()); } }
@Override protected void onInit() { super.onInit(); if (this.queryName == null) { this.queryListenerContainer.addListener(new ContinuousQueryDefinition(this.query, this, this.durable)); } else { this.queryListenerContainer.addListener(new ContinuousQueryDefinition(this.queryName, this.query, this, this.durable)); } }
@Override protected void onInit() { super.onInit(); if (this.evaluationContext == null) { this.evaluationContext = ExpressionUtils.createStandardEvaluationContext(this.getBeanFactory()); } }
@Override protected void onInit() { super.onInit(); this.applicationEventMulticaster = this.getBeanFactory() .getBean(AbstractApplicationContext.APPLICATION_EVENT_MULTICASTER_BEAN_NAME, ApplicationEventMulticaster.class); Assert.notNull(this.applicationEventMulticaster, "To use ApplicationListeners the 'applicationEventMulticaster' " + "bean must be supplied within ApplicationContext."); }