root/trunk/components/client/resources/beanRefContext.xml
| Revision 2756, 2.8 kB (checked in by jmoore, 5 months ago) | |
|---|---|
|
|
| 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 | <!-- |
| 5 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 6 | # |
| 7 | # $Id$ |
| 8 | # |
| 9 | # Copyright 2006 University of Dundee. All rights reserved. |
| 10 | # Use is subject to license terms supplied in LICENSE.txt |
| 11 | # |
| 12 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 13 | --> |
| 14 | |
| 15 | <!-- |
| 16 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 17 | # Written by: Josh Moore <josh.moore@gmx.de> |
| 18 | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 19 | --> |
| 20 | <beans> |
| 21 | |
| 22 | <bean id="ome.client" |
| 23 | class="ome.system.OmeroContext" |
| 24 | lazy-init="true"> |
| 25 | <description> |
| 26 | Client OmeroContext. This context can be created by calling |
| 27 | OmeroContext.getClientContext() or OmeroContext.getInstance("ome.client") |
| 28 | methods. See ome/client/spring.xml for more information about what |
| 29 | is available in this context. |
| 30 | |
| 31 | Relies to a java.util.Properties instance specified |
| 32 | either in the "ome.client.internal" context or provided by the user via |
| 33 | ServiceFactory(Server,Login). In order to achieve this, this context is NOT |
| 34 | eagerly loaded (see ctor-arg index=1 below) unlike all other contexts in our |
| 35 | beanRefContext.xml files. For this to work, OmeroContext checks all contexts |
| 36 | for readiness and if not ready, calls "refresh()". |
| 37 | |
| 38 | @see https://trac.openmicroscopy.org.uk/omero/ticket/313 |
| 39 | </description> |
| 40 | <constructor-arg> |
| 41 | <list> |
| 42 | <value>ome/client/spring.xml</value> |
| 43 | <value>classpath*:ome/services/client-*.xml</value> |
| 44 | </list> |
| 45 | </constructor-arg> |
| 46 | <constructor-arg index="1" value="false"/> |
| 47 | <constructor-arg index="2" ref="ome.client.internal"/> |
| 48 | </bean> |
| 49 | |
| 50 | <bean id="ome.client.internal" |
| 51 | class="ome.system.OmeroContext" |
| 52 | lazy-init="true"> |
| 53 | <constructor-arg> |
| 54 | <list> |
| 55 | <value>ome/client/internal.xml</value> |
| 56 | </list> |
| 57 | </constructor-arg> |
| 58 | </bean> |
| 59 | |
| 60 | <!-- Contexts for testing --> |
| 61 | |
| 62 | <bean id="ome.client.test" |
| 63 | class="ome.system.OmeroContext" |
| 64 | lazy-init="true"> |
| 65 | <constructor-arg> |
| 66 | <list> |
| 67 | <value>ome/client/spring.xml</value> |
| 68 | <value>ome/testing/data.xml</value> |
| 69 | </list> |
| 70 | </constructor-arg> |
| 71 | <constructor-arg index="1" value="true"/> |
| 72 | <constructor-arg index="2" ref="ome.client.internal"/> |
| 73 | </bean> |
| 74 | |
| 75 | <bean id="ome.client.test2" |
| 76 | class="ome.system.OmeroContext" |
| 77 | lazy-init="true"> |
| 78 | <constructor-arg> |
| 79 | <list> |
| 80 | <value>ome/client/utests/spring.xml</value> |
| 81 | </list> |
| 82 | </constructor-arg> |
| 83 | <constructor-arg index="1" value="true"/> |
| 84 | <constructor-arg index="2" ref="ome.client.internal"/> |
| 85 | </bean> |
| 86 | |
| 87 | </beans> |
Note: See TracBrowser
for help on using the browser.
