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

es.org.openl.rules.ruleservice.5.25.17.source-code.openl-ruleservice-datasource-beans.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"
       default-lazy-init="true">

    <bean name="repository" class="org.openl.rules.repository.RepositoryInstatiator" factory-method="newRepository">
        <constructor-arg name="prefix" value="production-repository"/>
        <constructor-arg name="props" value="#{new org.openl.spring.env.PropertyResolverFunction(environment)}"/>
    </bean>

    <bean id="rulesDeployerService" class="org.openl.rules.ruleservice.deployer.RulesDeployerService">
        <constructor-arg name="repository" ref="repository"/>
        <constructor-arg name="baseDeployPath" value="${production-repository.base.path}"/>
    </bean>

    <bean id="deployClasspathJarsBean" class="org.openl.rules.ruleservice.loader.DeployClasspathJarsBean">
        <property name="rulesDeployerService" ref="rulesDeployerService"/>
        <property name="enabled" value="#{${ruleservice.datasource.deploy.classpath.jars} and '${production-repository.factory}' ne 'repo-jar'}"/>
        <!-- Workaround to allow projects overrides in LocalRepository after application startup -->
        <property name="ignoreIfExists" value="#{'${production-repository.factory}' eq 'repo-file'}"/>
        <property name="retryPeriod" value="${ruleservice.datasource.deploy.classpath.retry-period}"/>
    </bean>

    <!-- Data source storage that provides information about deployments, projects
        and their properties and version -->
    <!-- Wrapper on data source that gives access to data source and resolves the OpenL projects/modules inside the projects.
    Contains own storage for all projects that is used in services. -->
    <bean id="ruleServiceLoader" class="org.openl.rules.ruleservice.loader.RuleServiceLoaderImpl"
          depends-on="deployClasspathJarsBean">
        <constructor-arg name="repository" ref="repository"/>
        <property name="deployPath" value="${production-repository.base.path}"/>
    </bean>
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy