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

lebyzero.tv.tv-lib.1.27.source-code.environment.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2013 Webster Smalley
  ~
  ~ 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:p="http://www.springframework.org/schema/p"
       xmlns:context="http://www.springframework.org/schema/context"
       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/context
        http://www.springframework.org/schema/context/spring-context-3.0.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

    <context:property-placeholder
            location="classpath:${environment}/environment.properties,classpath:common.properties,classpath:default.properties,classpath:${environment}site.properties,file:${environment}site.properties"
            ignore-resource-not-found="true"/>
    <import resource="db.xml"/>
    <import resource="${environment}/comms.xml"/>
    <import resource="${environment}/sky.xml"/>
    <import resource="${target}.xml"/>
    <context:component-scan base-package="com.webstersmalley.tv.db"/>
    <context:component-scan base-package="com.webstersmalley.tv.service"/>
    <context:component-scan base-package="com.webstersmalley.tv.sky"/>

    <bean id="listingsRefresher" class="com.webstersmalley.tv.service.ListingsRefresher"
          p:channelListFilename="${listingsrefresher.channels.file}"/>
    <bean id="velocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean">
        <property name="velocityProperties">
            <value>
                resource.loader=class
                class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
            </value>
        </property>
    </bean>
    <bean id="searchQueryLoaderService" class="com.webstersmalley.tv.service.SearchQueryLoaderService">
        <property name="searchQueryDao" ref="searchQueryDao"/>
        <property name="filename" value="${searcher.searchqueries.file}"/>
    </bean>

    <bean id="channelNameTranslator" class="com.webstersmalley.tv.sky.ChannelNameTranslator">
        <property name="map">
            <util:map>
                <entry key="ITV" value="ITV Meridian"/>
                <entry key="ITV +1" value="ITV Meridian"/>
                <entry key="BBC FOUR" value="BBC4"/>
                <entry key="BBC Three" value="BBC3"/>
                <entry key="BBC Four" value="BBC4"/>
                <entry key="BBC 2 England" value="BBC2"/>
                <entry key="BBC Two Eng" value="BBC2"/>
                <entry key="BBC Two HD" value="BBC2"/>
                <entry key="Nat Geo" value="National Geographic Channel"/>
                <entry key="BBC One S East" value="BBC1"/>
                <entry key="BBC 1 S East" value="BBC1"/>
                <entry key="BBC 1 West" value="BBC1"/>
                <entry key="BBC One HD" value="BBC1"/>
                <entry key="Sky Atlantic+1" value="Sky Atlantic"/>
                <entry key="Sky Arts 1 HD" value="Sky Arts 1"/>
                <entry key="Syfy HD" value="Syfy"/>
                <entry key="Sky1 +1" value="Sky1"/>
                <entry key="Sky1 HD" value="Sky1"/>
                <entry key="Watch HD" value="Watch"/>
                <entry key="ComedyCtlX" value="Comedy Central Extra"/>
                <entry key="ComedyCentral" value="Comedy Central"/>
                <entry key="Comedy Cen HD" value="Comedy Central"/>
                <entry key="SkyPremiereHD" value="Sky Movies Premiere"/>
                <entry key="FOX HD" value="FOX"/>
                <entry key="Channel 5+1" value="Channel 5 +1"/>
                <entry key="Sky Living+1" value="Sky Living"/>
                <entry key="Universal" value="Universal Channel"/>
                <entry key="horror channel" value="Horror Channel"/>
            </util:map>
        </property>
    </bean>
    <bean id="dummyComms" class="com.webstersmalley.tv.comms.ClassloaderComms"/>
    <bean id="oneDayComms" class="com.webstersmalley.tv.comms.CachingComms">
        <property name="targetComms">
            <bean class="com.webstersmalley.tv.comms.HttpComms"/>
        </property>
        <property name="cacheFolder" value="${cachefolder}"/>
        <property name="validationTimeout" value="8640"/>
    </bean>
    <bean id="thousandDaysComms" class="com.webstersmalley.tv.comms.CachingComms">
        <property name="targetComms">
            <bean class="com.webstersmalley.tv.comms.HttpComms"/>
        </property>
        <property name="cacheFolder" value="${cachefolder}"/>
        <property name="validationTimeout" value="8640000"/>
    </bean>
</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy