@Configuration @ConditionalOnClass(value={org.neo4j.ogm.session.SessionFactory.class,org.springframework.data.neo4j.transaction.Neo4jTransactionManager.class,org.springframework.transaction.PlatformTransactionManager.class}) @ConditionalOnMissingBean(value=org.neo4j.ogm.session.SessionFactory.class) @EnableConfigurationProperties(value=Neo4jProperties.class) @Import(value=org.springframework.boot.autoconfigure.data.neo4j.Neo4jBookmarkManagementConfiguration.class) public class Neo4jDataAutoConfiguration extends Object
Auto-configuration
for Spring Data Neo4j.Modifier and Type | Class and Description |
---|---|
protected static class |
Neo4jDataAutoConfiguration.Neo4jWebConfiguration |
Constructor and Description |
---|
Neo4jDataAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.neo4j.ogm.config.Configuration |
configuration(Neo4jProperties properties) |
org.neo4j.ogm.session.SessionFactory |
sessionFactory(org.neo4j.ogm.config.Configuration configuration,
ApplicationContext applicationContext,
ObjectProvider<org.neo4j.ogm.session.event.EventListener> eventListeners) |
org.springframework.data.neo4j.transaction.Neo4jTransactionManager |
transactionManager(org.neo4j.ogm.session.SessionFactory sessionFactory,
Neo4jProperties properties,
ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers) |
@Bean @ConditionalOnMissingBean public org.neo4j.ogm.config.Configuration configuration(Neo4jProperties properties)
@Bean public org.neo4j.ogm.session.SessionFactory sessionFactory(org.neo4j.ogm.config.Configuration configuration, ApplicationContext applicationContext, ObjectProvider<org.neo4j.ogm.session.event.EventListener> eventListeners)
@Bean @ConditionalOnMissingBean(value=org.springframework.transaction.PlatformTransactionManager.class) public org.springframework.data.neo4j.transaction.Neo4jTransactionManager transactionManager(org.neo4j.ogm.session.SessionFactory sessionFactory, Neo4jProperties properties, ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.