All Downloads are FREE. Search and download functionalities are using the official Maven repository.

es.org.openl.rules.ruleservice.ws.5.27.9-jakarta.source-code.openl-ruleservice-ws-beans.xml Maven / Gradle / Ivy

There is a newer version: 5.27.9
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:util="http://www.springframework.org/schema/util"
       xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
       xmlns:jaxrs="http://cxf.apache.org/jaxrs"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd

                           http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
                           http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd">

    <import resource="classpath:META-INF/cxf/cxf.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
    <import resource="classpath:openl-ruleservice-beans.xml"/>

    <bean class="org.openl.rules.ruleservice.kafka.publish.KafkaRuleServicePublisher"/>
    <bean class="org.openl.rules.ruleservice.jaxrs.JAXRSRuleServicePublisher"/>

    <http-conf:conduit name="*.http-conduit">
        <http-conf:client ConnectionTimeout="${ruleservice.http.connectionTimeout}"
                          ReceiveTimeout="${ruleservice.http.receiveTimeout}"/>
    </http-conf:conduit>

    <util:map id="uiConfig" key-type="java.lang.String">
        <entry key="deployerEnabled" value="${ruleservice.deployer.enabled}" value-type="java.lang.Boolean"/>
        <entry key="url" value="${openl.site}" value-type="java.lang.String"/>
        <entry key="version" value="${openl.version}" value-type="java.lang.String"/>
        <entry key="buildDate" value="${openl.build.date}" value-type="java.lang.String"/>
        <entry key="buildNumber" value="${openl.build.number}" value-type="java.lang.String"/>
        <entry key="startedAt" value="${openl.start.time}" value-type="java.lang.String"/>
        <entry key="startedMilli" value="${openl.start.milli}" value-type="java.lang.String"/>
        <entry key="appTitle" value="${openl.application.title}" value-type="java.lang.String"/>
    </util:map>

    <bean class="org.openl.rules.ruleservice.admin.RulesDeployerRestController" id="deployer" lazy-init="true"/>
    <bean class="java.lang.Object" id="emptyEndPoint" lazy-init="true"/>

    <jaxrs:server address="/admin">
        <jaxrs:serviceBeans>
            <bean class="org.openl.rules.ruleservice.admin.AdminRestController"/>
            <ref bean="#{ ${ruleservice.deployer.enabled} ? 'deployer' : 'emptyEndPoint'}"/>
        </jaxrs:serviceBeans>
        <jaxrs:providers>
            <bean class="com.fasterxml.jackson.jakarta.rs.json.JacksonJsonProvider"/>
        </jaxrs:providers>
    </jaxrs:server>

    <!-- Bean for configure storages type via openl-ruleservice.properties file. -->
    <bean id="storeLogDataManager" class="org.openl.rules.ruleservice.storelogdata.SimpleStoreLogDataManager"/>

    <bean class="org.openl.rules.ruleservice.storelogdata.StoreLogDataServiceInvocationAdviceListener"/>

</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy