spring.aps.managers.apiManagersConfig.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of entando-engine Show documentation
Show all versions of entando-engine Show documentation
Entando Engine: an agile, modern and user-centric open source Portal platform.
<?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:jee="http://www.springframework.org/schema/jee" xmlns:util="http://www.springframework.org/schema/util" xmlns:aop="http://www.springframework.org/schema/aop" 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/jee http://www.springframework.org/schema/jee/spring-jee.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd" > <bean id="ApiResponseBuilder" class="org.entando.entando.aps.system.services.api.server.ResponseBuilder" > <property name="apiCatalogManager" ref="ApiCatalogManager" /> <property name="velocityRenderer" > <bean class="com.agiletec.aps.system.common.renderer.DefaultVelocityRenderer" parent="abstractService" > <property name="wrapperContextName"> <value>item</value> </property> </bean> </property> </bean> <bean id="ApiCatalogManager" class="org.entando.entando.aps.system.services.api.ApiCatalogManager" parent="abstractService" depends-on="springCacheManager" > <property name="apiCatalogDAO" > <bean class="org.entando.entando.aps.system.services.api.ApiCatalogDAO"> <property name="dataSource" ref="servDataSource" /> </bean> </property> <property name="resourceCacheWrapper"> <bean class="org.entando.entando.aps.system.services.api.cache.ApiResourceCacheWrapper"> <property name="springCacheManager" ref="springCacheManager" /> </bean> </property> <property name="serviceCacheWrapper"> <bean class="org.entando.entando.aps.system.services.api.cache.ApiServiceCacheWrapper"> <property name="springCacheManager" ref="springCacheManager" /> </bean> </property> </bean> <bean id="ApiServiceInterface" class="org.entando.entando.aps.system.services.api.ApiServiceInterface"> <property name="apiCatalogManager" ref="ApiCatalogManager"/> <property name="langManager" ref="LangManager"/> <property name="responseBuilder" ref="ApiResponseBuilder"/> <property name="authorizationManager" ref="AuthorizationManager"/> </bean> <bean id="OAuthConsumerManager" class="org.entando.entando.aps.system.services.oauth2.OAuthConsumerManager" parent="abstractService"> <property name="consumerDAO"> <bean class="org.entando.entando.aps.system.services.oauth2.OAuthConsumerDAO"> <property name="dataSource" ref="servDataSource"/> <property name="dataSourceClassName"><value>${servDataSourceClassName}</value></property> </bean> </property> <property name="accessTokenValiditySeconds"><value>${oauth2.accessToken.validitySeconds}</value></property> <property name="refreshTokenValiditySeconds"><value>${oauth2.refreshToken.validitySeconds}</value></property> </bean> <bean id="OAuth2TokenManager" class="org.entando.entando.aps.system.services.oauth2.ApiOAuth2TokenManager" parent="abstractService"> <property name="OAuth2TokenDAO"> <bean class="org.entando.entando.aps.system.services.oauth2.OAuth2TokenDAO"> <property name="dataSource" ref="servDataSource"/> </bean> </property> <property name="accessTokenValiditySeconds"><value>${oauth2.accessToken.validitySeconds}</value></property> <property name="refreshTokenValiditySeconds"><value>${oauth2.refreshToken.validitySeconds}</value></property> </bean> <beans profile="swagger"> <bean id="swaggerInitializer" class="org.entando.entando.aps.system.init.SwaggerInitializer" > <constructor-arg name="baseConfigManager" ref="BaseConfigManager" /> <constructor-arg name="consumerManager" ref="OAuthConsumerManager" /> </bean> </beans> </beans>