crafter.core.blob-context.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (C) 2007-2020 Crafter Software Corporation. All Rights Reserved.
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License version 3 as published by
~ the Free Software Foundation.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<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">
<!-- Blob Store -->
<bean id="crafter.blobUrlResolver" class="org.craftercms.commons.file.blob.impl.BlobUrlResolverImpl">
<constructor-arg value="${crafter.blob.extension}"/>
</bean>
<bean id="crafter.blobStoreResolver" class="org.craftercms.commons.file.blob.impl.BlobStoreResolverImpl">
<property name="configModule" value="${crafter.blob.configuration.module}"/>
<property name="configPath" value="${crafter.blob.configuration.path}"/>
<property name="configurationResolver" ref="crafter.configurationResolver"/>
</bean>
<!-- S3 -->
<bean id="crafter.s3ClientFactory" class="org.craftercms.commons.aws.S3ClientCachingFactory"/>
<bean id="crafter.s3ProfileMapper" class="org.craftercms.commons.config.profiles.aws.S3ProfileMapper">
<constructor-arg ref="crafter.configurationResolver"/>
</bean>
<bean id="s3BlobStore" class="org.craftercms.commons.file.blob.impl.s3.AwsS3BlobStore" scope="prototype">
<property name="clientFactory" ref="crafter.s3ClientFactory"/>
<property name="environmentResolver" ref="crafter.environmentResolver"/>
<property name="profileMapper" ref="crafter.s3ProfileMapper"/>
</bean>
</beans> © 2015 - 2025 Weber Informatics LLC | Privacy Policy