All Downloads are FREE. Search and download functionalities are using the official Maven repository.

at.molindo.notify.context.notify.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright 2010 Molindo GmbH

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:util="http://www.springframework.org/schema/util"
	xsi:schemaLocation="
  	http://www.springframework.org/schema/beans
  	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  	http://www.springframework.org/schema/util 
  	http://www.springframework.org/schema/util/spring-util-3.0.xsd
  ">

	<import resource="notify-render-velocity.xml" />

	<bean id="notifyService" class="at.molindo.notify.NotifyService">
		<property name="instantDispatcher" ref="dispatcher" />
		<property name="notificationDAO" ref="notificationDAO" />
		<property name="preferencesDAO" ref="preferencesDAO" />
		<property name="confirmationService" ref="confirmationService" />
		<property name="notifyUrlFactory" ref="notifyUrlFactory" />
	</bean>

	<bean id="notifyUrlFactory" class="at.molindo.notify.util.NotifyUrlFactoryFactory" autowire="byType" />

	<bean id="dispatcher" class="at.molindo.notify.dispatch.PollingPushDispatcher">
		<property name="pushChannels">
			<bean class="at.molindo.notify.util.PushChannelsFactory" autowire="byType" />
		</property>
		<property name="notifyService" ref="notifyService" />
		<property name="dispatchService" ref="dispatchService" />
		<property name="notificationDAO" ref="notificationDAO" />
		<property name="preferencesDAO" ref="preferencesDAO" />
		<property name="maxErrorCount" value="5" />
		<property name="poolSize" value="4" />
	</bean>

	<bean id="confirmationService" class="at.molindo.notify.confirm.ConfirmationService">
		<property name="notificationDAO" ref="notificationDAO" />
		<property name="confirmationListeners">
			<bean class="at.molindo.notify.util.ConfirmationListenersFactory" autowire="byType" />
		</property>
	</bean>

	<bean id="dispatchService" class="at.molindo.notify.dispatch.DispatchService">
		<property name="renderService" ref="renderService" />
		<property name="notifyUrlFactory" ref="notifyUrlFactory" />
		<property name="paramsFactories">
			<bean class="at.molindo.notify.util.ParamFactoriesFactory" autowire="byType" />
		</property>
	</bean>

</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy