You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
140 lines
7.7 KiB
140 lines
7.7 KiB
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
xsi:schemaLocation="
|
|
http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
http://www.springframework.org/schema/context
|
|
http://www.springframework.org/schema/context/spring-context.xsd
|
|
http://www.springframework.org/schema/mvc
|
|
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
|
|
|
|
<mvc:annotation-driven />
|
|
<context:component-scan base-package="org.libresonic.player.controller, org.libresonic.player.validator"/>
|
|
|
|
<bean id="streamController" class="org.libresonic.player.controller.StreamController">
|
|
<property name="playerService" ref="playerService"/>
|
|
<property name="playlistService" ref="playlistService"/>
|
|
<property name="statusService" ref="statusService"/>
|
|
<property name="securityService" ref="securityService"/>
|
|
<property name="settingsService" ref="settingsService"/>
|
|
<property name="mediaFileService" ref="mediaFileService"/>
|
|
<property name="searchService" ref="searchService"/>
|
|
<property name="transcodingService" ref="transcodingService"/>
|
|
<property name="audioScrobblerService" ref="audioScrobblerService"/>
|
|
</bean>
|
|
<bean id="hlsController" class="org.libresonic.player.controller.HLSController">
|
|
<property name="playerService" ref="playerService"/>
|
|
<property name="mediaFileService" ref="mediaFileService"/>
|
|
<property name="securityService" ref="securityService"/>
|
|
</bean>
|
|
<bean id="videoPlayerController" class="org.libresonic.player.controller.VideoPlayerController">
|
|
<property name="viewName" value="videoPlayer"/>
|
|
<property name="mediaFileService" ref="mediaFileService"/>
|
|
<property name="settingsService" ref="settingsService"/>
|
|
<property name="playerService" ref="playerService"/>
|
|
<property name="securityService" ref="securityService"/>
|
|
</bean>
|
|
<bean id="externalPlayerController" class="org.libresonic.player.controller.ExternalPlayerController">
|
|
<property name="viewName" value="externalPlayer"/>
|
|
<property name="mediaFileService" ref="mediaFileService"/>
|
|
<property name="settingsService" ref="settingsService"/>
|
|
<property name="playerService" ref="playerService"/>
|
|
<property name="shareService" ref="shareService"/>
|
|
</bean>
|
|
<bean id="downloadController" class="org.libresonic.player.controller.DownloadController">
|
|
<property name="playerService" ref="playerService"/>
|
|
<property name="statusService" ref="statusService"/>
|
|
<property name="securityService" ref="securityService"/>
|
|
<property name="playlistService" ref="playlistService"/>
|
|
<property name="settingsService" ref="settingsService"/>
|
|
<property name="mediaFileService" ref="mediaFileService"/>
|
|
</bean>
|
|
<bean id="wapController" class="org.libresonic.player.controller.WapController">
|
|
<property name="settingsService" ref="settingsService"/>
|
|
<property name="playerService" ref="playerService"/>
|
|
<property name="playlistService" ref="playlistService"/>
|
|
<property name="searchService" ref="searchService"/>
|
|
<property name="securityService" ref="securityService"/>
|
|
<property name="mediaFileService" ref="mediaFileService"/>
|
|
<property name="musicIndexService" ref="musicIndexService"/>
|
|
</bean>
|
|
<bean id="restController" class="org.libresonic.player.controller.RESTController" init-method="init">
|
|
<property name="settingsService" ref="settingsService"/>
|
|
<property name="securityService" ref="securityService"/>
|
|
<property name="playerService" ref="playerService"/>
|
|
<property name="mediaFileService" ref="mediaFileService"/>
|
|
<property name="lastFmService" ref="lastFmService"/>
|
|
<property name="musicIndexService" ref="musicIndexService"/>
|
|
<property name="transcodingService" ref="transcodingService"/>
|
|
<property name="statusService" ref="statusService"/>
|
|
<property name="searchService" ref="searchService"/>
|
|
<property name="jukeboxService" ref="jukeboxService"/>
|
|
<property name="audioScrobblerService" ref="audioScrobblerService"/>
|
|
<property name="playlistService" ref="playlistService"/>
|
|
<property name="playQueueService" ref="ajaxPlayQueueService"/>
|
|
<property name="ratingService" ref="ratingService"/>
|
|
<property name="chatService" ref="ajaxChatService"/>
|
|
<property name="lyricsService" ref="ajaxLyricsService"/>
|
|
<property name="podcastService" ref="podcastService"/>
|
|
<property name="shareService" ref="shareService"/>
|
|
<property name="mediaFileDao" ref="mediaFileDao"/>
|
|
<property name="artistDao" ref="artistDao"/>
|
|
<property name="albumDao" ref="albumDao"/>
|
|
<property name="bookmarkDao" ref="bookmarkDao"/>
|
|
<property name="playQueueDao" ref="playQueueDao"/>
|
|
<property name="downloadController" ref="downloadController"/>
|
|
<property name="streamController" ref="streamController"/>
|
|
<property name="hlsController" ref="hlsController"/>
|
|
<property name="coverArtController" ref="coverArtController"/>
|
|
<property name="avatarController" ref="avatarController"/>
|
|
<property name="userSettingsController" ref="userSettingsController"/>
|
|
<property name="leftController" ref="leftController"/>
|
|
</bean>
|
|
<bean id="dbController" class="org.libresonic.player.controller.DBController">
|
|
<property name="viewName" value="db"/>
|
|
<property name="daoHelper" ref="daoHelper"/>
|
|
</bean>
|
|
|
|
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
|
|
<property name="alwaysUseFullPath" value="true"/>
|
|
<property name="mappings">
|
|
<props>
|
|
<prop key="/videoPlayer.view">videoPlayerController</prop>
|
|
<prop key="/download.view">downloadController</prop>
|
|
<prop key="/db.view">dbController</prop>
|
|
<prop key="/podcast/**">podcastController</prop>
|
|
<prop key="/wap/download.view">downloadController</prop>
|
|
<prop key="/wap/**">wapController</prop>
|
|
<prop key="/rest/**">restController</prop>
|
|
<prop key="/stream/**">streamController</prop>
|
|
<prop key="/hls/**">hlsController</prop>
|
|
<prop key="/share/**">externalPlayerController</prop>
|
|
</props>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
|
|
<property name="basename" value="org.libresonic.player.i18n.ResourceBundle"/>
|
|
</bean>
|
|
|
|
<bean id="themeSource" class="org.libresonic.player.theme.LibresonicThemeSource">
|
|
<property name="basenamePrefix" value="org.libresonic.player.theme."/>
|
|
<property name="settingsService" ref="settingsService"/>
|
|
</bean>
|
|
|
|
<bean id="themeResolver" class="org.libresonic.player.theme.LibresonicThemeResolver">
|
|
<property name="securityService" ref="securityService"/>
|
|
<property name="settingsService" ref="settingsService"/>
|
|
</bean>
|
|
|
|
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
|
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
|
|
<property name="prefix" value="/WEB-INF/jsp/"/>
|
|
<property name="suffix" value=".jsp"/>
|
|
</bean>
|
|
|
|
</beans>
|
|
|