
META-INF.spring.beans.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- #%L Locator Service :: REST %% Copyright (C) 2011 - 2012 Talend Inc. %% Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. #L% --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:osgix="http://www.springframework.org/schema/osgi-compendium" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/osgi-compendium http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd "> <jaxrs:server id="locatorService" address="/ServiceLocatorRestService"> <jaxrs:serviceBeans> <ref bean="serviceLocatorBean" /> </jaxrs:serviceBeans> <jaxrs:providers> <ref bean="jsonProvider" /> </jaxrs:providers> </jaxrs:server> <osgi:reference id="locatorClient" interface="org.talend.esb.servicelocator.client.ServiceLocator" /> <osgi:reference id="endpointCollector" interface="org.talend.esb.servicelocator.client.ExpiredEndpointCollector" /> <bean id="serviceLocatorBean" class="org.talend.esb.locator.service.rest.LocatorRestServiceImpl" init-method="start" destroy-method="disconnectLocator"> <property name="locatorClient" ref="locatorClient" /> <property name="endpointCollector" ref="endpointCollector" /> </bean> <bean id="jsonProvider" class="org.apache.cxf.jaxrs.provider.json.JSONProvider"> <property name="ignoreNamespaces" value="true" /> </bean> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy