Source

main / src / test / resources / config / core / test-config.xml

Full commit
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:util="http://www.springframework.org/schema/util"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
	   xsi:schemaLocation="http://www.springframework.org/schema/beans 
           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
           http://www.springframework.org/schema/context
           http://www.springframework.org/schema/context/spring-context-2.5.xsd
		   http://www.springframework.org/schema/util 
		   http://www.springframework.org/schema/util/spring-util-2.0.xsd">

	<util:properties id="persistence" location="classpath:properties/persistence/persistence.properties"/>

		<!-- JHOVE2 framework bean -->
	<bean id="JHOVE2" class="org.jhove2.core.JHOVE2" scope="prototype">
		<constructor-arg ref="FrameworkAccessor"/>
		<property name="developers">
			<list value-type="org.jhove2.core.Agent">
				<ref bean="CDLAgent"/>
				<ref bean="PorticoAgent"/>
				<ref bean="StanfordAgent"/>
			</list>
		</property>
		<property name="commands">
			<list value-type="org.jhove2.core.JHOVE2Command">
				<ref bean="IdentifierCommand"/>
				<ref bean="DispatcherCommand"/>
				<ref bean="AggrefierCommand"/>
			</list>
		</property>
		<property name="configInfo" ref="ConfigInfo"/>
		<property name="sourceFactory" ref="SourceFactory"/>
	</bean>	
		<bean id="ConfigInfo" class="org.jhove2.config.spring.SpringConfigInfo"
		scope="singleton"/>
	
	
		<!-- Dispatcher command bean -->
	<bean id="DispatcherCommand" class="org.jhove2.module.format.DispatcherCommand"
	      scope="prototype">
	      <constructor-arg ref="BaseModuleAccessor"/>
	    <property name="developers">
			<list value-type="org.jhove2.core.Agent">
				<ref bean="CDLAgent"/>
				<ref bean="PorticoAgent"/>
				<ref bean="StanfordAgent"/>
			</list>
		</property>
		<property name="formatFactory" ref="FormatFactory"/>
		<property name="formatModuleFactory" ref="FormatModuleFactory"/>
		<property name="baseFormatModuleAccessor" ref="FormatModuleAccessor"/>
	</bean>
	

		<!-- Format factory bean -->
	<bean id="FormatFactory" class="org.jhove2.config.spring.SpringFormatFactory" 
		scope="singleton"/>
		
	<!--  Format module factory bean -->
	<bean id="FormatModuleFactory" 
	    class="org.jhove2.config.spring.SpringFormatModuleFactory" 
		scope="singleton"/>

		
		<!-- CDL agent bean -->
	<bean id="CDLAgent" class="org.jhove2.core.Agent" scope="singleton">
		<constructor-arg type="java.lang.String" value="California Digital Library"/>
		<constructor-arg type="org.jhove2.core.Agent$Type" value="Corporate"/>
		<property name="URI" value="http://www.cdlib.org/"/>
	</bean>
		
	<!-- Portico agent bean -->
	<bean id="PorticoAgent" class="org.jhove2.core.Agent" scope="singleton">
		<constructor-arg type="java.lang.String" value="Portico"/>
		<constructor-arg type="org.jhove2.core.Agent$Type" value="Corporate"/>
		<property name="URI" value="http://www.portico.org/"/>
	</bean>
		
	<!-- Stanford agent bean -->
	<bean id="StanfordAgent" class="org.jhove2.core.Agent" scope="singleton">
		<constructor-arg type="java.lang.String" value="Stanford University"/>
		<constructor-arg type="org.jhove2.core.Agent$Type" value="Corporate"/>
		<property name="URI" value="http://www.stanford.edu/"/>
	</bean>
		
	<!-- BnF (Bibliothéque nationale de France) agent bean -->
	<bean id="BnFAgent" class="org.jhove2.core.Agent" scope="singleton">
		<constructor-arg type="java.lang.String" value="Bibliothéque nationale de France"/>
		<constructor-arg type="org.jhove2.core.Agent$Type" value="Corporate"/>
		<property name="URI" value="http://www.bnf.fr/"/>
	</bean>

	<!-- Netarkivet agent bean -->
	<bean id="NetarkivetAgent" class="org.jhove2.core.Agent" scope="singleton">
		<constructor-arg type="java.lang.String" value="Netarkivet"/>
		<constructor-arg type="org.jhove2.core.Agent$Type" value="Corporate"/>
		<property name="URI" value="http://netarkivet.dk/"/>
	</bean>

   <bean id="DisplayVisibility" class="org.jhove2.config.spring.PropertiesFactoryBean">
  		<property name="propertyFileBaseName" value="displayer"/>
   </bean>

</beans>