2 # Copyright © 2018 Amdocs, Bell Canada, AT&T
 
   4 # Licensed under the Apache License, Version 2.0 (the "License");
 
   5 # you may not use this file except in compliance with the License.
 
   6 # You may obtain a copy of the License at
 
   8 #       http://www.apache.org/licenses/LICENSE-2.0
 
  10 # Unless required by applicable law or agreed to in writing, software
 
  11 # distributed under the License is distributed on an "AS IS" BASIS,
 
  12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
  13 # See the License for the specific language governing permissions and
 
  14 # limitations under the License.
 
  17 <beans xmlns="http://www.springframework.org/schema/beans"
 
  18         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 
  20                http://www.springframework.org/schema/beans
 
  21                http://www.springframework.org/schema/beans/spring-beans.xsd">
 
  23                                  <bean id="viewInspectSearchProvider"
 
  24                                 class="org.onap.aai.sparky.viewandinspect.search.ViewInspectSearchProvider">
 
  25                                 <constructor-arg ref="searchServiceAdapter" />
 
  26                                 <constructor-arg ref="suggestiveSearchConfigs" />
 
  27                                 <constructor-arg name="viewInspectIndexName" value="entitysearchindex" />
 
  28                                 <constructor-arg name="viewInspectSuggestionRoute" value="schema" />
 
  29                                 <constructor-arg ref="oxmEntityLookup" />
 
  31                                 <property name="additionalSearchSuggestionText">
 
  37                         <bean id="registerViewInspectSearchProvider"
 
  38                                 class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
 
  39                                 <property name="targetObject" ref="searchProviderRegistry" />
 
  40                                 <property name="targetMethod">
 
  41                                         <value>addSearchProviders</value>
 
  43                                 <property name="arguments">
 
  44                                         <list value-type="org.onap.aai.sparky.search.api.SearchProvider">
 
  45                                                 <ref bean="viewInspectSearchProvider" />