| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <!-- |
|---|
| 3 | |
|---|
| 4 | Copyright (C) 2010 Cardiff University, Wales <smartp@cf.ac.uk> |
|---|
| 5 | |
|---|
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
|---|
| 7 | you may not use this file except in compliance with the License. |
|---|
| 8 | You may obtain a copy of the License at |
|---|
| 9 | |
|---|
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 11 | |
|---|
| 12 | Unless required by applicable law or agreed to in writing, software |
|---|
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
|---|
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|---|
| 15 | See the License for the specific language governing permissions and |
|---|
| 16 | limitations under the License. |
|---|
| 17 | |
|---|
| 18 | --> |
|---|
| 19 | <beans xmlns="http://www.springframework.org/schema/beans" |
|---|
| 20 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|---|
| 21 | xmlns:jaxws="http://cxf.apache.org/jaxws" |
|---|
| 22 | xsi:schemaLocation=" |
|---|
| 23 | http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
|---|
| 24 | http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | <import resource="classpath:META-INF/cxf/cxf.xml" /> |
|---|
| 28 | <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> |
|---|
| 29 | <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | <!-- WEB SERVICE ENDPOINT INTERFACE (SEI) SETUP --> |
|---|
| 33 | <jaxws:endpoint |
|---|
| 34 | id="muaEndpoint" |
|---|
| 35 | implementor="#muaEndpointInterface" |
|---|
| 36 | address="/MultiUnitAggregator" > |
|---|
| 37 | <jaxws:serviceFactory> |
|---|
| 38 | <ref bean='jaxws-and-aegis-service-factory' /> |
|---|
| 39 | </jaxws:serviceFactory> |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | </jaxws:endpoint> |
|---|
| 43 | |
|---|
| 44 | <bean id="muaEndpointInterface" class="uk.ac.cardiff.raptormua.wsinterface.impl.MultiUnitAggregatorImpl"> |
|---|
| 45 | <property name="processService"> |
|---|
| 46 | <ref bean="MUAProcess"></ref> |
|---|
| 47 | </property> |
|---|
| 48 | </bean> |
|---|
| 49 | |
|---|
| 50 | <bean id="aegisBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding" |
|---|
| 51 | scope="prototype" /> |
|---|
| 52 | <bean id="jaxws-and-aegis-service-factory" class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean" |
|---|
| 53 | scope="prototype"> |
|---|
| 54 | <property name="dataBinding" ref="aegisBean" /> |
|---|
| 55 | <property name="properties"> |
|---|
| 56 | <map> |
|---|
| 57 | <entry key="writeXsiType"> |
|---|
| 58 | <value type="java.lang.Boolean">true</value> |
|---|
| 59 | </entry> |
|---|
| 60 | <entry key="overrideTypesList"> |
|---|
| 61 | <list> |
|---|
| 62 | <!-- THIS LIST IS IMPORTANT, it exposes these classes to the aegis XSD creator |
|---|
| 63 | so we can output the generic Entry class in lists in the Collector Service Endpoint Class |
|---|
| 64 | but actually output any of its subclasses. Hence, this is a way of dealing with |
|---|
| 65 | inheritence in CXF and aegis --> |
|---|
| 66 | <value>uk.ac.cardiff.model.event.AuthenticationEvent</value> |
|---|
| 67 | <value>uk.ac.cardiff.model.event.ShibbolethIdpAuthenticationEvent</value> |
|---|
| 68 | <!-- <value>org.sdmx.resources.sdmxml.schemas.v2_0.message.CompactDataType</value>--> |
|---|
| 69 | </list> |
|---|
| 70 | </entry> |
|---|
| 71 | </map> |
|---|
| 72 | </property> |
|---|
| 73 | </bean> |
|---|
| 74 | |
|---|
| 75 | <!-- DONE --> |
|---|
| 76 | |
|---|
| 77 | <bean id="MUAProcess" class="uk.ac.cardiff.raptormua.service.impl.MUAProcessImpl"> |
|---|
| 78 | <property name="engine"> |
|---|
| 79 | <ref bean="MUAEngine"></ref> |
|---|
| 80 | </property> |
|---|
| 81 | </bean> |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | |
|---|
| 85 | <!-- |
|---|
| 86 | this bean config kicks of the singleton engine instance which is then |
|---|
| 87 | used by all services of the MUA |
|---|
| 88 | --> |
|---|
| 89 | <bean id="MUAEngine" class="uk.ac.cardiff.raptormua.engine.MUAEngine"> |
|---|
| 90 | <property name="eventReleaseClient"><ref bean="eventReleaseClient"></ref></property> |
|---|
| 91 | <property name="statisticsHandler"><ref bean="statisticalUnits"/></property> |
|---|
| 92 | <property name="entryHandler"><ref bean="persistantEntryHandler"></ref></property> |
|---|
| 93 | <property name="muaMetadata"><ref bean="MUAMetadata"></ref></property> |
|---|
| 94 | <property name="attributeAssociationEngine"><ref bean="attributeAssociationEngine"></ref></property> |
|---|
| 95 | </bean> |
|---|
| 96 | |
|---|
| 97 | <!-- the attribute association engine --> |
|---|
| 98 | <bean id="attributeAssociationEngine" class="uk.ac.cardiff.raptor.event.expansion.AttributeAssociationEngine"> |
|---|
| 99 | |
|---|
| 100 | </bean> |
|---|
| 101 | |
|---|
| 102 | <!-- the event release client, for sending events to other MUA's --> |
|---|
| 103 | |
|---|
| 104 | <bean id="eventReleaseClient" class="uk.ac.cardiff.raptor.remoting.client.impl.EventReleaseClientImpl"> |
|---|
| 105 | <property name="endpointRegistry"><ref bean="endpointRegistry"/></property> |
|---|
| 106 | <property name="eventReleaseEngine"><ref bean="eventReleaseEngine"></ref></property> |
|---|
| 107 | </bean> |
|---|
| 108 | |
|---|
| 109 | <bean id="eventReleaseEngine" class="uk.ac.cardiff.raptor.registry.EventReleaseEngine"> |
|---|
| 110 | <property name="attributeFilterEngine"><ref bean="attributeFilterEngine"/></property> |
|---|
| 111 | <property name="serviceEndpointInterface"><ref bean="serviceEndpointInterface"/></property> |
|---|
| 112 | </bean> |
|---|
| 113 | |
|---|
| 114 | <bean id="attributeFilterEngine" class="uk.ac.cardiff.raptor.attribute.filtering.AttrributeFilterEngine"/> |
|---|
| 115 | |
|---|
| 116 | <bean id="serviceEndpointInterface" class="uk.ac.cardiff.raptor.remoting.client.sei.impl.CxfServiceEndpointClient"/> |
|---|
| 117 | |
|---|
| 118 | |
|---|
| 119 | <!-- MUA Metadata --> |
|---|
| 120 | <bean id="MUAMetadata" class="uk.ac.cardiff.model.ServerMetadata"> |
|---|
| 121 | <property name="serverName"><value>Cardiff University's MUA</value></property> |
|---|
| 122 | <property name="organisationName"><value>Cardiff University</value></property> |
|---|
| 123 | <property name="contactEmail"><value>smartp@cf.ac.uk</value></property> |
|---|
| 124 | </bean> |
|---|
| 125 | |
|---|
| 126 | <!-- Create the entry handler --> |
|---|
| 127 | <bean name="persistantEntryHandler" class="uk.ac.cardiff.raptormua.model.PersistantEntryHandler"> |
|---|
| 128 | <constructor-arg index="0"><ref bean="dataConnectionImpl"></ref></constructor-arg> |
|---|
| 129 | </bean> |
|---|
| 130 | |
|---|
| 131 | <import resource="dao-beans.xml"/> |
|---|
| 132 | <import resource="statistical-units.xml" /> |
|---|
| 133 | <import resource="event-release.xml"/> |
|---|
| 134 | <import resource="users.xml" /> |
|---|
| 135 | |
|---|
| 136 | </beans> |
|---|