• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • Last Change
  • Annotate
  • Revision Log

root/trunk/components/server/resources/beanRefContext.xml

Revision 2776, 2.0 kB (checked in by jmoore, 4 months ago)

ticket:800 - Beginning work on cleaning config for romio tests

Romio needs to know the value of omero.data.dir, which can be
acquired (usually correctly) in several ways. However, a unified
way of accessing this is needed, and that will be via OmeroContext.

  • Moving ome/services/config-local.xml to common:ome/config.xml
  • Moaving PathUtil back to romio for keeping the romio tests simple
  • Server tests will use the context directly
  • Property svn:keywords set to Id
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
3  "http://www.springframework.org/dtd/spring-beans.dtd">
4<beans>
5  <description>
6        Defines the contexts for the Omero Server. Other beanRefFactory.xmls may define
7  other contexts.
8  </description>
9
10        <bean id="placeholderConfig"
11                class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
12                <property name="ignoreResourceNotFound" value="true"/>
13                <property name="locations">
14                <list>
15                        <value>hibernate.properties</value>
16                        <value>omero.properties</value>
17                </list>
18                </property>
19        </bean>
20
21  <bean    id="ome.model"
22        class="org.springframework.context.support.ClassPathXmlApplicationContext"
23        lazy-init="true">
24    <constructor-arg index="0">
25      <list>
26        <value>classpath:ome/services/messaging.xml</value>
27        <value>classpath:ome/model.xml</value>
28      </list>
29    </constructor-arg>
30  </bean>
31
32  <bean    id="ome.server"
33          class="ome.system.OmeroContext"
34          lazy-init="true">
35    <constructor-arg index="0">
36      <list>
37        <!--
38        Arranged roughly in stack order, which is to say that beans
39        from files higher in the list, should not use beans from files
40        lower in the list.
41        -->
42        <value>classpath:ome/config.xml</value>
43        <value>classpath:ome/services/messaging.xml</value>
44        <value>classpath:ome/services/datalayer.xml</value>
45        <value>classpath:ome/services/sec-primitives.xml</value>
46        <value>classpath:ome/services/hibernate.xml</value>
47        <value>classpath:ome/services/services.xml</value>
48        <value>classpath*:ome/services/service-*.xml</value>
49        <value>classpath:ome/services/sec-system.xml</value>
50      </list>
51    </constructor-arg>
52    <constructor-arg index="1" ref="ome.model"/>
53  </bean>
54
55</beans>
Note: See TracBrowser for help on using the browser.

Download in other formats:

  • Plain Text
  • Original Format

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/