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

META-INF.ui-spring.xml Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (c) 2016, The National Archives <[email protected]>
    All rights reserved.

    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following
    conditions are met:

     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.

     * Redistributions in binary form must reproduce the above copyright
       notice, this list of conditions and the following disclaimer in the
       documentation and/or other materials provided with the distribution.

     * Neither the name of the The National Archives nor the
       names of its contributors may be used to endorse or promote products
       derived from this software without specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-->

<beans xmlns="http://www.springframework.org/schema/beans" default-autowire="no" default-lazy-init="true"
	   
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:util="http://www.springframework.org/schema/util"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.2.xsd
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd">

	<import resource="classpath*:/META-INF/cxf/cxf.xml" />
	<import resource="classpath*:/META-INF/cxf/cxf-extension-soap.xml" />
	<import resource="classpath*:/META-INF/cxf/cxf-servlet.xml" />     
	
	<import resource="classpath*:/META-INF/spring-signature.xml"/>
    <import resource="classpath*:/META-INF/report-spring.xml"/>
	

    <bean id="properties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">
            <value>classpath*:archive-puids.properties</value>
        </property>
    </bean>

    <bean id="globalConfig" class="uk.gov.nationalarchives.droid.core.interfaces.config.DroidGlobalConfig" init-method="init"/>

    <bean id="exportManager" class="uk.gov.nationalarchives.droid.export.ExportManagerImpl" destroy-method="destroy">
        <property name="profileContextLocator" ref="profileContextLocator"/>
        <property name="itemWriter" ref="itemWriter"/>
    </bean>

    <bean id="signatureManager" class="uk.gov.nationalarchives.droid.signature.SignatureManagerImpl" init-method="init">
        <property name="signatureUpdateServices">
            <map>
                <entry key="BINARY" value-ref="binarySignatureUpdateService"/>
                <entry key="CONTAINER" value-ref="containerSignatureUpdateService"/>
                <!-- <entry key="TEXT" value-ref="textSignatureUpdateService"/> -->
            </map>
        </property>
        <property name="config" ref="globalConfig"/>
    </bean>

    <bean id="itemWriter" class="uk.gov.nationalarchives.droid.profile.CsvItemWriter"/>

    <bean id="profileManager" class="uk.gov.nationalarchives.droid.profile.ProfileManagerImpl">
        <property name="profileContextLocator" ref="profileContextLocator"/>
        <property name="profileSpecDao" ref="profileSpecDao"/>
        <property name="profileDiskAction" ref="profileDiskAction"/>
        <property name="signatureManager" ref="signatureManager"/>
        <property name="config" ref="globalConfig"/>
    </bean>

    <bean id="profileSpecDao" class="uk.gov.nationalarchives.droid.profile.JaxbProfileSpecDao"/>

    <bean id="uuidGenerator" class="uk.gov.nationalarchives.droid.profile.ProfileUuidGeneratorImpl"/>

    <bean id="profileInstanceFactory" class="uk.gov.nationalarchives.droid.profile.SpringProfileInstanceFactory"/>

    <bean id="profileContextLocator" class="uk.gov.nationalarchives.droid.profile.ProfileContextLocator">
        <property name="profileInstanceLocator" ref="profileInstanceFactory"/>
        <property name="globalConfig" ref="globalConfig"/>
    </bean>

    <bean id="profileDiskAction" class="uk.gov.nationalarchives.droid.profile.ProfileDiskAction"/>

    <bean id="exportCommand" class="uk.gov.nationalarchives.droid.command.action.ExportCommand" scope="prototype">
        <property name="exportManager" ref="exportManager"/>
        <property name="profileManager" ref="profileManager"/>
    </bean>
    
    <bean id="reportCommand" class="uk.gov.nationalarchives.droid.command.action.ReportCommand" scope="prototype">
        <property name="reportManager" ref="reportManager"/>
        <property name="profileManager" ref="profileManager"/>
        <property name="reportXmlWriter" ref="reportXmlWriter"/>
        <property name="config" ref="globalConfig"/>
    </bean>

    <bean id="profileRunCommand" class="uk.gov.nationalarchives.droid.command.action.ProfileRunCommand" scope="prototype">
        <property name="signatureManager" ref="signatureManager"/>
        <property name="profileManager" ref="profileManager"/>
	<property name="profileResourceFactory">
    	    <bean class="uk.gov.nationalarchives.droid.profile.ProfileResourceFactory"/>
	</property>
    </bean>
    
    <bean id="abstractSignatureCommand" abstract="true" scope="prototype" >
        <property name="signatureManager" ref="signatureManager"/>
    </bean>
    
    <bean id="checkSignatureUpdateCommand" class="uk.gov.nationalarchives.droid.command.action.CheckSignatureUpdateCommand"
        parent="abstractSignatureCommand"/>
    
    <bean id="downloadSignatureUpdateCommand" parent="abstractSignatureCommand" 
        class="uk.gov.nationalarchives.droid.command.action.DownloadSignatureUpdateCommand"/>
        
    <bean id="displayDefaultSignatureVersion" parent="abstractSignatureCommand"
        class="uk.gov.nationalarchives.droid.command.action.DisplayDefaultSignatureFileVersionCommand"/>

    <bean id="configureDefaultSignatureVersion" parent="abstractSignatureCommand"
        class="uk.gov.nationalarchives.droid.command.action.ConfigureDefaultSignatureFileVersionCommand">
        <property name="globalConfig" ref="globalConfig"/>
	<property name="type">
    		<util:constant static-field="uk.gov.nationalarchives.droid.core.interfaces.signature.SignatureType.BINARY"/>
      </property>
    </bean>

    <bean id="listAllSignatureFilesCommand" parent="abstractSignatureCommand"
        class="uk.gov.nationalarchives.droid.command.action.ListAllSignatureFilesCommand">
    </bean>

    <bean id="listReportsCommand" class="uk.gov.nationalarchives.droid.command.action.ListReportsCommand">
        <property name="reportManager" ref="reportManager"/>        
    </bean>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy