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

commerce.broadleaf-framework.3.0.13-GA.source-code.bl-framework-applicationContext.xml Maven / Gradle / Ivy

There is a newer version: 3.1.15-GA
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:context="http://www.springframework.org/schema/context"
    xmlns:task="http://www.springframework.org/schema/task"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
           http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.2.xsd
           http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd">
    
    <context:component-scan base-package="org.broadleafcommerce.core">
        <context:exclude-filter type="regex" expression="org.broadleafcommerce.core.web.*"/> 
    </context:component-scan>
    
    <task:annotation-driven/>
    
    <!-- Bean for encrypting PCI data -->
    <bean id="blEncryptionModule" class="org.broadleafcommerce.common.encryption.PassthroughEncryptionModule"/>
    
    <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
        <property name="autodetect" value="true"/>
        <property name="assembler" ref="blAssembler"/>
        <property name="namingStrategy" ref="blNamingStrategy"/>
    </bean>
    
    <bean id="blAttributeSource" class="org.broadleafcommerce.common.jmx.AnnotationJmxAttributeSource">
        <constructor-arg>
            <bean class="org.springframework.jndi.JndiObjectFactoryBean">
                <property name="jndiName">
                    <value>java:/comp/env/appName</value>
                </property>
                <property name="defaultObject" value="broadleaf"/>
            </bean>
        </constructor-arg>
    </bean>
    
    <bean id="blAssembler" class="org.broadleafcommerce.common.jmx.MetadataMBeanInfoAssembler">
        <property name="attributeSource" ref="blAttributeSource"/>
    </bean>
    
    <bean id="blNamingStrategy" class="org.broadleafcommerce.common.jmx.MetadataNamingStrategy">
        <property name="attributeSource" ref="blAttributeSource"/>
    </bean>

    <bean id="blAccountNumberMask" class="org.broadleafcommerce.common.payment.AccountNumberMask">
        <constructor-arg>
            <list>
                <bean class="org.broadleafcommerce.common.payment.UnmaskRange">
                    <constructor-arg value="0"/>
                    <constructor-arg value="0"/>
                </bean>
                <bean class="org.broadleafcommerce.common.payment.UnmaskRange">
                    <constructor-arg value="1"/>
                    <constructor-arg value="4"/>
                </bean>
            </list>
        </constructor-arg>
        <constructor-arg value="X"/>
    </bean>

    <bean id="blContentCartRuleProcessor" class="org.broadleafcommerce.core.order.service.StructuredContentCartRuleProcessor">
        <property name="orderDao" ref="blOrderDao"/>
        <property name="contextClassNames">
            <map>
                <entry key="discreteOrderItem" value="org.broadleafcommerce.core.order.domain.DiscreteOrderItem" />
            </map>
        </property>
    </bean>

    <!-- Append the content rule processor that checks for cart contents -->
    <bean id="blContentRuleProcessors" class="org.springframework.beans.factory.config.ListFactoryBean">
        <property name="sourceList">
            <list>
                <ref bean="blContentCartRuleProcessor"/>
            </list>
        </property>
    </bean>
    
    <bean id="blPageCartRuleProcessor" class="org.broadleafcommerce.core.order.service.PageCartRuleProcessor">
        <property name="orderDao" ref="blOrderDao"/>
        <property name="contextClassNames">
            <map>
                <entry key="discreteOrderItem" value="org.broadleafcommerce.core.order.domain.DiscreteOrderItem" />
            </map>
        </property>
    </bean>

    <!-- Append the content rule processor that checks for cart contents -->
    <bean id="blPageRuleProcessors" class="org.springframework.beans.factory.config.ListFactoryBean">
        <property name="sourceList">
            <list>
                <ref bean="blPageCartRuleProcessor"/>
            </list>
        </property>
    </bean>    

    <bean id="conversionService" class="org.springframework.context.support.ConversionServiceFactoryBean">
        <property name="converters">
            <set>
                <bean class="org.broadleafcommerce.openadmin.server.util.LocaleConverter" />
            </set>
        </property>
    </bean>                    
</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy