diff options
author | 2018-12-18 20:23:53 +0000 | |
---|---|---|
committer | 2018-12-18 20:23:53 +0000 | |
commit | 748e0d7d368936966607ea6a35fe99c93641e242 (patch) | |
tree | 2c9582dc3d37247552c35d94c5bdec3c98d266a4 /src/main/resources/validation-service-beans.xml | |
parent | e42476aed3e687a06cc08ded095d7a6cae29c29e (diff) | |
parent | d8d4c7a637e70a75a59cac53e0385d1029c5d4d5 (diff) |
Merge "[PIE-797] adding data-dictionary builtin rule"
Diffstat (limited to 'src/main/resources/validation-service-beans.xml')
-rw-r--r-- | src/main/resources/validation-service-beans.xml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main/resources/validation-service-beans.xml b/src/main/resources/validation-service-beans.xml index 4482c6e..862fd13 100644 --- a/src/main/resources/validation-service-beans.xml +++ b/src/main/resources/validation-service-beans.xml @@ -17,9 +17,11 @@ limitations under the License. ============LICENSE_END===================================================== --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd"> + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd + http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor" /> @@ -37,6 +39,8 @@ limitations under the License. <constructor-arg value="file:${APP_HOME}/bundleconfig/etc/appprops/model-instance-mapping.json_conf" type="java.io.InputStream" /> </bean> + <util:properties id="dataDictionaryProperties" location="file:${CONFIG_HOME}/rule-data-dictionary.properties" /> + <!-- ////////////////////////////////////////////////////////////////// --> <!-- CONFIG BEANS --> <!-- ////////////////////////////////////////////////////////////////// --> @@ -100,6 +104,15 @@ limitations under the License. <property name="authPolicyFile" value="${auth.policy.file}" /> </bean> + <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> + <property name="staticMethod" value="org.onap.aai.validation.ruledriven.rule.builtin.DataDictionary.setProperties" /> + <property name="arguments"> + <list> + <ref bean="dataDictionaryProperties" /> + </list> + </property> + </bean> + <!-- ////////////////////////////////////////////////////////////////// --> <!-- READER BEANS --> <!-- ////////////////////////////////////////////////////////////////// --> |