@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) 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.springframework.data.neo4j.template.Neo4jTemplate |
neo4jTemplate(org.neo4j.ogm.session.SessionFactory sessionFactory) |
org.neo4j.ogm.session.SessionFactory |
sessionFactory(org.neo4j.ogm.config.Configuration configuration,
org.springframework.context.ApplicationContext applicationContext,
org.springframework.beans.factory.ObjectProvider<List<org.neo4j.ogm.session.event.EventListener>> eventListeners) |
org.springframework.data.neo4j.transaction.Neo4jTransactionManager |
transactionManager(org.neo4j.ogm.session.SessionFactory sessionFactory,
Neo4jProperties properties,
org.springframework.beans.factory.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, org.springframework.context.ApplicationContext applicationContext, org.springframework.beans.factory.ObjectProvider<List<org.neo4j.ogm.session.event.EventListener>> eventListeners)
@Bean @ConditionalOnMissingBean(value=org.springframework.data.neo4j.template.Neo4jOperations.class) public org.springframework.data.neo4j.template.Neo4jTemplate neo4jTemplate(org.neo4j.ogm.session.SessionFactory sessionFactory)
@Bean @ConditionalOnMissingBean(value=org.springframework.transaction.PlatformTransactionManager.class) public org.springframework.data.neo4j.transaction.Neo4jTransactionManager transactionManager(org.neo4j.ogm.session.SessionFactory sessionFactory, Neo4jProperties properties, org.springframework.beans.factory.ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.