@Configuration @ComponentScan(basePackages="org.appng.core", excludeFilters=) @EnableTransactionManagement @EnableJpaRepositories(repositoryBaseClass=SearchRepositoryImpl.class, basePackages="org.appng.core.repository", entityManagerFactoryRef="entityManagerFactory", transactionManagerRef="coreTxManager") public class PlatformConfig extends Object
Configuration
for appNG's platform context.Constructor and Description |
---|
PlatformConfig() |
@Bean public PlatformEventListener platformEventListener()
@Bean public DataSourceFactory dataSource(@Value(value="${hibernate.connection.url}") String jdbcUrl, @Value(value="${hibernate.connection.username}") String userName, @Value(value="${hibernate.connection.password}") String password, @Value(value="${hibernate.connection.driver_class}") String driverClass, @Value(value="${database.type}") String type, @Value(value="${database.minConnections:3}") Integer minConnections, @Value(value="${database.maxConnections:10}") Integer maxConnections, @Value(value="${database.maxLifetime:90000}") Integer maxLifetime, @Value(value="${database.validationQuery}") String validationQuery, @Value(value="${database.validationPeriod}") Integer validationPeriod, @Value(value="${database.validationTimeout:5000}") Integer validationTimeout, @Value(value="${database.connectionTimeout:5000}") Integer connectionTimeout, @Value(value="${database.logPerformance:false}") boolean logPerformance)
@Bean public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory(DataSource dataSource, @Value(value="${hibernate.dialect}") String dialect)
@Bean @Qualifier(value="coreTxManager") public org.springframework.orm.jpa.JpaTransactionManager coreTxManager(javax.persistence.EntityManagerFactory emf)
@Bean public org.springframework.orm.jpa.support.SharedEntityManagerBean entityManager(javax.persistence.EntityManagerFactory emf)
@Bean public DocumentBuilderFactory documentBuilderFactory()
@Bean public TransformerFactory transformerFactory() throws TransformerConfigurationException
@Bean(initMethod="init") @RequestScope(proxyMode=NO) public StyleSheetProvider styleSheetProvider(DocumentBuilderFactory dbf, TransformerFactory tf)
@Bean(initMethod="init") @Scope(value="prototype") public MarshallService marshallService(DocumentBuilderFactory dbf, TransformerFactory tf)
@Bean @Lazy public CoreService coreService()
@Bean @Lazy public DatabaseService databaseService()
@Bean @Lazy public TemplateService templateService()
@Bean @Lazy public InitializerService initializerService()
@Bean @Lazy public LdapService ldapService()
@Bean @RequestScope(proxyMode=NO) public ThymeleafProcessor thymeleafProcessor(DocumentBuilderFactory dbf, MarshallService marshallService)
@Bean @RequestScope(proxyMode=NO) public Object tagletProcessor(MarshallService marshallService, StyleSheetProvider styleSheetProvider) throws ReflectiveOperationException
ReflectiveOperationException
@Bean @RequestScope(proxyMode=NO) public EnvironmentFactoryBean environment()
@Bean @Lazy @RequestScope(proxyMode=NO) public PlatformTransformer platformTransformer(StyleSheetProvider styleSheetProvider)
@Bean @RequestScope(proxyMode=NO) public RequestProcessor requestProcessor(MarshallService marshallService, PlatformTransformer platformTransformer)
@Bean @Lazy public org.springframework.cache.CacheManager platformCacheManager()
Copyright © 2011–2020 aiticon GmbH. All rights reserved.