XML文件各种bean的创建

前端之家收集整理的这篇文章主要介绍了XML文件各种bean的创建前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:c="http://www.springframework.org/schema/c"
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.1.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.1.xsd">

<bean id="filingTxtFCProcessor"
class="com.atpco.textload.processor.FilingTextFareClassProcessor">
</bean>

<util:list id="strList" list-class="java.util.ArrayList"
value-type="java.lang.String">
<value>111</value>
<value>222</value>
<value>333</value>
</util:list>

<bean id="rbdctlCorrectionSelsql" class="java.lang.String">
<constructor-arg index="0">
<value>
SELECT
IN_EFF_YR,
CXR_CD,
RULE_TAR_CD,
RULE_CD,
SEG_ORD_NO,
CREATE_ID,
CREATE_TS,
LAST_MNT_TS,
${ddsSchema}LAST_DISC_DT,
UPD_WORK_UNIT_SG
FROM ${gfsSchema}RBD_CTL_SEG_CRRN
WHERE
IN_EFF_YR=9999
</value>
</constructor-arg>
</bean>

<util:list id="fanList">
<ref bean="fan"></ref>
</util:list>

<bean id="fan"
class="net.atpco.dds.offline.filing.common.model.FilingAdviceNumber">
<constructor-arg index="0" type="java.lang.Integer"
value="1" /> <!-- wuSg -->
<constructor-arg index="1" type="java.lang.String"
value="AATCP" /> <!-- carrierCode -->
<constructor-arg index="2" type="java.lang.String"
value="AA" /> <!-- ruleTariffCode -->
<property name="fanNo" value="1"></property>
<property name="fanCreationDate" ref="currentDate"></property>
</bean>

<bean id="postponeTextLoadRequest"
class="net.atpco.dds.offline.filing.textload.processor.FilingTextLoadRequest">
<constructor-arg index="0" type="java.lang.Integer"
value="12345" /> <!-- wuSg -->
<constructor-arg index="1" type="java.lang.String"
value="AATCP" /> <!-- carrierCode -->
<constructor-arg index="2" type="java.lang.String"
value="AA" /> <!-- ruleTariffCode -->
<constructor-arg index="3"
type="net.atpco.dds.offline.filing.enums.FilingTextLoadTypeEnum"
value="FC_FLG" />
<property name="releaseDate" ref="currentDate"></property>
<property name="ddsTariff" ref="ddsTariff"></property>
<property name="referenceDataList" ref="postponeReferenceDataList"></property>
<property name="mayLackFareSupportInd">
<value type="net.atpco.dds.offline.filing.common.enums.YesNoEnum">Y</value>
</property>
<property name="pricgCatTypeCd">
<null />
</property>
</bean>

<bean id="luceneBaseSchema" class="java.lang.String">
<constructor-arg index="0">
<value>LuceneSchema/GFS</value>
</constructor-arg>
</bean>

<bean id="expectRbdCrrnMap" class="java.util.HashMap">
<constructor-arg>
<map>
<entry key="IN_EFF_YR" value="2014" />
<entry key="CXR_CD" value="AA" />
<entry key="RULE_TAR_CD" value="AATCP" />
</map>
</constructor-arg>
</bean>

<bean id="currentDate"
class="net.atpco.dds.offline.filing.common.model.FilingDatePart"
lazy-init="true" />

<bean id="expectRbdCrrnMap" class="java.util.HashMap">
<constructor-arg>
<map>
<entry key="UPD_WORK_UNIT_SG" value="#{number+12344}" />
</map>
</constructor-arg>
</bean>

<util:map id="ftntTCFList" map-class="java.util.HashMap"
key-type="java.lang.String" value-type="java.lang.String">
<entry key="IPRA">
<list>
<value>1y</value>
</list>
</entry>
</util:map>

<util:map id="recordDetailsForGovCodeAndPresUSCA" map-class="java.util.HashMap"
value-type="java.lang.Object">
<entry key="MKTB_FAN_SEQ_NO" value="100"></entry>
<entry key="MKTB_ORIG_CITY_CD" value="AAAAA"></entry>
<entry key="MKTB_DEST_CITY_CD" value="BBBBB"></entry>
<entry key="MKTB_FC_CD" value="FCFCFCFC"></entry>
</util:map>

<util:set id="iExpRuleNoList1" value-type="java.lang.String">
<value>2000</value>
</util:set>

<bean id="number" class="java.lang.Integer">
<constructor-arg value="1" index="0"></constructor-arg>
</bean>

<util:list id="recordTypeList" list-class="java.util.ArrayList"
value-type="net.atpco.dds.offline.filing.enums.FilingDataRecordTypeEnum">
<value>INTL_FARE</value>
<value>USCA_FARE</value>
<value>ADDON</value>
</util:list>

<util:set id="addonFtntCodeSetWithT" set-class="java.util.HashSet"
value-type="java.lang.String" scope="prototype">
<value>T</value>
</util:set>

<util:map id="exptJustFilingGovtMap" map-class="java.util.HashMap"
value-type="java.util.List">
<entry>
<key>
<value type="java.lang.String">GA</value>
</key>
<ref bean="exptJustFilingGovtGA" />
</entry>
<entry>
<key>
<value type="java.lang.String">GB</value>
</key>
<ref bean="exptJustFilingGovtGB" />
</entry>
<entry>
<key>
<value type="java.lang.String">GC</value>
</key>
<ref bean="exptJustFilingGovtGC" />
</entry>
</util:map>

<bean id="exptJustFilingGovtGA"
class="net.atpco.dds.offline.filing.common.model.FilingGovtJustificationCounts">
<constructor-arg index="0" value="GA" />
<constructor-arg index="1" value="Y" />
<property name="rbdPrstCnt" value="9" />
<property name="rulePrstCnt" value="10" />
<property name="fcPrstCnt" value="11" />
<property name="ftntPrstCnt" value="12" />
<property name="ruleCodeSet" ref="ruleCodeSet"></property>
<property name="fcCodeSet" ref="fcCodeSet"></property>
<property name="ftntCodeSet" ref="ftntCodeSet"></property>
</bean>

<util:list id="newGriSegmentList"
value-type="net.atpco.dds.offline.common.model.rules.GeneralRuleIndexSegment">
<ref bean="newGriSegment" />
</util:list>

<util:map id="faresReferenceMap" map-class="java.util.HashMap"
value-type="java.util.List" scope="prototype">
<entry>
<key>
<value type="java.lang.String">2000</value>
</key>
<ref bean="uscaINTLReferenceList" />
</entry>
<entry>
<key>
<value type="java.lang.String">7000</value>
</key>
<ref bean="uscaINTLReferenceListWith7000" />
</entry>
</util:map>

<util:list id="uscaINTLReferenceList"
value-type="net.atpco.dds.offline.filing.model.fares.USCAINTLReference"
scope="prototype">
<ref bean="uscaINTLReference" />
</util:list>

<util:map id="renumMap" map-class="java.util.HashMap"
value-type="java.util.List">
<entry>
<key>
<value>AABT</value>
</key>
<util:list value-type="java.lang.Object">
<value>101</value>
</util:list>
</entry>
</util:map>

<util:list id="recordTypeList0"
value-type="net.atpco.dds.offline.filing.enums.FilingDataRecordTypeEnum">
<value>INTL_FC</value>
<value>USCA_FC</value>
</util:list>

<util:properties id="customProps">
<prop key="dataDirectory">LuceneSchema/GFS</prop>
<prop key="dataChunkSize">10</prop>
</util:properties>

<bean id="newGriSegment"
class="net.atpco.dds.offline.common.model.rules.GeneralRuleIndexSegment"
lazy-init="true">
<property name="isCurrent" value="true"></property>
<property name="batchPrefixCode" value="7"></property>
<property name="btch">
<ref bean="btchForSegment" />
</property>
<property name="createdByEdotInd" value="Y"></property>
<property name="createdByPostponeInd" value="Y"></property>
<property name="cancelInd" value="Y"></property>
<property name="stringOccurrences" ref="newGriOccList"></property>
<property name="effectiveDate" value="#{currentDate.addDaysReturnDate(-10)}"></property>
<property name="discontinueDate" value="#{currentDate.addDaysReturnDate(-20)}"></property>
</bean>

</beans>

原文链接:https://www.f2er.com/xml/297623.html

猜你在找的XML相关文章