aboutsummaryrefslogtreecommitdiff
path: root/ms_specific_proxyservice
diff options
context:
space:
mode:
Diffstat (limited to 'ms_specific_proxyservice')
-rw-r--r--ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/config/MsProxyServiceMessageSource.java21
-rw-r--r--ms_specific_proxyservice/src/main/resources/specific_eIDAS_proxy.beans.xml3
2 files changed, 24 insertions, 0 deletions
diff --git a/ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/config/MsProxyServiceMessageSource.java b/ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/config/MsProxyServiceMessageSource.java
new file mode 100644
index 00000000..7274a354
--- /dev/null
+++ b/ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/config/MsProxyServiceMessageSource.java
@@ -0,0 +1,21 @@
+package at.asitplus.eidas.specific.proxy.config;
+
+import java.util.Arrays;
+import java.util.List;
+
+import at.gv.egiz.eaaf.core.api.logging.IMessageSourceLocation;
+
+/**
+ * Inject eIDAS Proxy-Service specific messages into Spring based message-source.
+ *
+ * @author tlenz
+ *
+ */
+public class MsProxyServiceMessageSource implements IMessageSourceLocation {
+
+ @Override
+ public List<String> getMessageSourceLocation() {
+ return Arrays.asList("classpath:/properties/messages");
+ }
+
+}
diff --git a/ms_specific_proxyservice/src/main/resources/specific_eIDAS_proxy.beans.xml b/ms_specific_proxyservice/src/main/resources/specific_eIDAS_proxy.beans.xml
index cc4c904e..452285e3 100644
--- a/ms_specific_proxyservice/src/main/resources/specific_eIDAS_proxy.beans.xml
+++ b/ms_specific_proxyservice/src/main/resources/specific_eIDAS_proxy.beans.xml
@@ -19,4 +19,7 @@
<bean id="pvpEndpointConfig"
class="at.asitplus.eidas.specific.proxy.pvp.PvpEndPointConfiguration" />
+ <bean id="msProxyServiceMessageSources"
+ class="at.asitplus.eidas.specific.proxy.config.MsProxyServiceMessageSource" />
+
</beans> \ No newline at end of file