crafter.core.store-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">
<!-- Content Store Adapter -->
<bean id="crafter.contentStoreAdapter.filesystem" class="org.craftercms.core.store.impl.filesystem.FileSystemContentStoreAdapter">
<property name="cacheTemplate" ref="crafter.cacheTemplate"/>
<property name="metadataFileExtension" value="${crafter.core.store.metadataFile.extension}"/>
<property name="descriptorFileExtension" value="${crafter.core.store.descriptorFile.extension}"/>
<property name="pathValidator">
<bean class="org.craftercms.commons.validation.validators.impl.SecurePathValidator">
<constructor-arg value="path"/>
</bean>
</property>
</bean>
<!-- Content Store Adapter Registry -->
<bean id="crafter.contentStoreAdapterRegistry" class="org.craftercms.core.store.impl.ContentStoreAdapterRegistryImpl" >
<property name="adapters">
<map>
<entry key="filesystem" value-ref="crafter.contentStoreAdapter.filesystem"/>
</map>
</property>
</bean>
<!-- Content Store Service -->
<bean id="crafter.contentStoreService" class="org.craftercms.core.service.impl.ContentStoreServiceImpl">
<property name="cacheTemplate" ref="crafter.cacheTemplate"/>
<property name="merger" ref="crafter.merger"/>
<property name="processorResolver" ref="crafter.procesorResolverChain"/>
<property name="mergeStrategyResolver" ref="crafter.mergeStrategyResolverChain"/>
<property name="storeAdapterRegistry" ref="crafter.contentStoreAdapterRegistry"/>
<property name="blobUrlResolver" ref="crafter.blobUrlResolver"/>
<property name="blobStoreResolver" ref="crafter.blobStoreResolver"/>
</bean>
</beans> © 2015 - 2025 Weber Informatics LLC | Privacy Policy