META-INF.CoreAutoBeans.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of it-tidalwave-northernwind-core-default Show documentation
Show all versions of it-tidalwave-northernwind-core-default Show documentation
A default implementation of the Core.
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- #%L ********************************************************************************************************************* NorthernWind - lightweight CMS http://northernwind.tidalwave.it - git clone https://bitbucket.org/tidalwave/northernwind-src.git %% Copyright (C) 2011 - 2023 Tidalwave s.a.s. (http://tidalwave.it) %% ********************************************************************************************************************* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ********************************************************************************************************************* ********************************************************************************************************************* #L% --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" 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 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd" default-autowire="byType"> <!-- Turns on @Autowired, @PostConstruct, etc. --> <context:annotation-config /> <!-- Enables AOP-based injection of classes that are instantiated outside of the Spring bean factory --> <context:spring-configured /> <aop:aspectj-autoproxy/> <!-- Generic task executor --> <bean id="taskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"> <property name="corePoolSize" value="${nw.task.corePoolSize}" /> <property name="maxPoolSize" value="${nw.task.maxPoolSize}" /> <property name="queueCapacity" value="${nw.task.queueCapacity}" /> </bean> <!-- Generic scheduler for tasks --> <!-- We need autowire-candidate="false" to avoid confusion with other instances of ThreadFactory, and unfortunately task:scheduler doesn't accept this attribute. --> <!--<task:scheduler id="scheduler" pool-size="10" autowire-candidate="false" />--> <bean id="scheduler" class="org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler" autowire-candidate="false"> <property name="poolSize" value="10" /> </bean> <!-- MessageBus stuff --> <bean id="applicationMessageBusTaskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor" autowire-candidate="false"> <property name="corePoolSize" value="${nw.eventBus.context.corePoolSize}" /> <property name="maxPoolSize" value="${nw.eventBus.context.maxPoolSize}" /> <property name="queueCapacity" value="${nw.eventBus.context.queueCapacity}" /> </bean> <bean id="applicationMessageBus" class="it.tidalwave.messagebus.spi.SimpleMessageBus"> <constructor-arg ref="applicationMessageBusTaskExecutor"/> </bean> <!-- Core objects --> <bean id="requestHolder" class="it.tidalwave.northernwind.core.model.spi.RequestHolder"/> <bean id="modelFactory" class="it.tidalwave.northernwind.core.impl.model.DefaultModelFactory"/> <bean id="mimeTypeResolver" class="it.tidalwave.northernwind.core.impl.model.ServletContextMimeTypeResolver"/> <bean id="inheritanceHelper" class="it.tidalwave.northernwind.core.impl.model.DefaultInheritanceHelper" /> <bean id="requestContext" class="it.tidalwave.northernwind.core.impl.model.DefaultRequestContext" /> <bean id="filterSetExpander" class="it.tidalwave.northernwind.core.impl.model.FilterSetExpander" /> <bean id="mediaLinkMacroExpander" class="it.tidalwave.northernwind.core.impl.filter.MediaLinkMacroFilter" /> <bean id="nodeLinkMacroExpander" class="it.tidalwave.northernwind.core.impl.filter.NodeLinkMacroFilter" /> <bean id="nodeLinkWithContentMacroExpander" class="it.tidalwave.northernwind.core.impl.filter.NodeLinkWithContentMacroFilter" /> <bean id="libraryLinkMacroExpander" class="it.tidalwave.northernwind.core.impl.filter.LibraryLinkMacroFilter" /> <bean id="globalPropertyResolverMacroFilter" class="it.tidalwave.northernwind.core.impl.filter.GlobalPropertyResolverMacroFilter" /> <bean id="contentPropertyResolverMacroFilter" class="it.tidalwave.northernwind.core.impl.filter.ContentPropertyResolverMacroFilter" /> <bean id="nodePropertyResolverMacroFilter" class="it.tidalwave.northernwind.core.impl.filter.NodePropertyResolverMacroFilter" /> <bean id="siteProvider" class="it.tidalwave.northernwind.core.impl.model.DefaultSiteProvider"> <property name="documentPath" value="${nw.documentPath}" /> <property name="mediaPath" value="${nw.mediaPath}" /> <property name="nodePath" value="${nw.nodePath}" /> <property name="libraryPath" value="${nw.libraryPath}" /> <property name="logConfigurationEnabled" value="${nw.logConfigurationEnabled}" /> <property name="localesAsString" value="${nw.site.locales}" /> <property name="ignoredFoldersAsString" value="${nw.ignoredFolders}" /> </bean> <bean id="voidLinkPostProcessor" class="it.tidalwave.northernwind.core.impl.model.VoidLinkPostProcessor" /> <bean id="normalizedLinkPostProcessor" class="it.tidalwave.northernwind.core.impl.model.NormalizedLinkPostProcessor" /> <bean id="requestLocaleManager" class="it.tidalwave.northernwind.core.impl.model.DefaultRequestLocaleManager" > </bean> <bean id="redirectProcessor" class="it.tidalwave.northernwind.core.model.spi.DefaultRedirectProcessor" > </bean> <bean id="viewFactory" class="it.tidalwave.northernwind.frontend.impl.ui.DefaultViewFactory" > <property name="logConfigurationEnabled" value="${nw.logConfigurationEnabled}" /> </bean> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy