-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathblueprint.xml
70 lines (57 loc) · 2.95 KB
/
blueprint.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 https://osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0 http://aries.apache.org/schemas/blueprint-ext/blueprint-ext.xsd
http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<cm:property-placeholder id="conf"
persistent-id="org.fcrepo.apix.registry.http" update-strategy="reload">
<cm:default-properties>
<cm:property name="timeout.connect.ms" value="1000" />
<cm:property name="timeout.socket.ms" value="1000" />
</cm:default-properties>
</cm:property-placeholder>
<bean id="configAdmin" factory-ref="conf" factory-method="getConfigAdmin" />
<bean id="configHelper" class="org.fcrepo.apix.registry.ConfigHelper">
<property name="configurationAdmin" ref="configAdmin" />
</bean>
<bean id="configProperties" factory-ref="configHelper"
factory-method="getProperties">
<argument value="org.fcrepo.apix.registry.http" />
</bean>
<reference-list id="httpClients" interface="org.apache.http.client.HttpClient"
availability="optional">
<reference-listener bind-method="bind"
unbind-method="unbind" ref="httpClientFetcher">
</reference-listener>
</reference-list>
<!--HttpClient -->
<bean id="httpClientFactory" class="org.fcrepo.apix.registry.HttpClientFactory">
<property name="connectTimeout" value="${timeout.connect.ms}" />
<property name="socketTimeout" value="${timeout.socket.ms}" />
<property name="properties" ref="configProperties" />
</bean>
<bean id="httpClient-default" factory-ref="httpClientFactory"
factory-method="getClient" />
<bean id="httpClientFetcher" class="org.fcrepo.apix.registry.HttpClientFetcher">
<property name="defaultClient" ref="httpClient-default" />
<property name="bundleContext" ref="blueprintBundleContext" />
</bean>
<bean id="httpClient" factory-ref="httpClientFetcher"
factory-method="getClient" />
<bean id="httpRegistryImpl" class="org.fcrepo.apix.registry.impl.HttpRegistry">
<property name="httpClient" ref="httpClient" />
</bean>
<service id="httpClientFetcherService" interface="org.fcrepo.apix.registry.HttpClientFetcher"
ref="httpClientFetcher" />
<service id="httpRegistry" ref="httpRegistryImpl"
interface="org.fcrepo.apix.model.components.Registry">
<service-properties>
<entry key="org.fcrepo.apix.registry.role" value="default" />
</service-properties>
</service>
</blueprint>