-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathblueprint.xml
29 lines (26 loc) · 1.33 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
<?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"
xsi:schemaLocation="
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://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<!-- OSGI blueprint property placeholder -->
<cm:property-placeholder id="properties" persistent-id="ca.islandora.alpaca.http.client" update-strategy="reload" >
<cm:default-properties>
<cm:property name="token.value" value="islandora"/>
</cm:default-properties>
</cm:property-placeholder>
<service id="httpClient" interface="org.apache.http.client.HttpClient">
<service-properties>
<entry key="osgi.jndi.service.name" value="claw/httpClient"/>
</service-properties>
<bean class="ca.islandora.alpaca.http.client.StaticTokenRequestInterceptor" factory-method="defaultClient">
<argument>
<bean class="ca.islandora.alpaca.http.client.StaticTokenRequestInterceptor">
<property name="token" value="${token.value}"/>
</bean>
</argument>
</bean>
</service>
</blueprint>