@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value={org.neo4j.driver.Driver.class,org.springframework.data.neo4j.core.transaction.Neo4jTransactionManager.class,org.springframework.transaction.PlatformTransactionManager.class}) @EnableConfigurationProperties(value=Neo4jDataProperties.class) @ConditionalOnBean(value=org.neo4j.driver.Driver.class) @AutoConfigureBefore(value=TransactionAutoConfiguration.class) @AutoConfigureAfter(value=Neo4jAutoConfiguration.class) public class Neo4jDataAutoConfiguration extends Object
Auto-configuration
for Spring Data Neo4j.Constructor and Description |
---|
Neo4jDataAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.neo4j.core.DatabaseSelectionProvider |
databaseSelectionProvider(Neo4jDataProperties properties) |
org.springframework.data.neo4j.core.Neo4jClient |
neo4jClient(org.neo4j.driver.Driver driver) |
org.springframework.data.neo4j.core.convert.Neo4jConversions |
neo4jConversions() |
org.springframework.data.neo4j.core.mapping.Neo4jMappingContext |
neo4jMappingContext(ApplicationContext applicationContext,
org.springframework.data.neo4j.core.convert.Neo4jConversions neo4jConversions) |
org.springframework.data.neo4j.core.Neo4jTemplate |
neo4jTemplate(org.springframework.data.neo4j.core.Neo4jClient neo4jClient,
org.springframework.data.neo4j.core.mapping.Neo4jMappingContext neo4jMappingContext,
org.springframework.data.neo4j.core.DatabaseSelectionProvider databaseNameProvider) |
org.springframework.data.neo4j.core.transaction.Neo4jTransactionManager |
transactionManager(org.neo4j.driver.Driver driver,
org.springframework.data.neo4j.core.DatabaseSelectionProvider databaseNameProvider,
ObjectProvider<TransactionManagerCustomizers> optionalCustomizers) |
@Bean @ConditionalOnMissingBean public org.springframework.data.neo4j.core.convert.Neo4jConversions neo4jConversions()
@Bean @ConditionalOnMissingBean public org.springframework.data.neo4j.core.mapping.Neo4jMappingContext neo4jMappingContext(ApplicationContext applicationContext, org.springframework.data.neo4j.core.convert.Neo4jConversions neo4jConversions) throws ClassNotFoundException
ClassNotFoundException
@Bean @ConditionalOnMissingBean public org.springframework.data.neo4j.core.DatabaseSelectionProvider databaseSelectionProvider(Neo4jDataProperties properties)
@Bean(value="neo4jClient") @ConditionalOnMissingBean public org.springframework.data.neo4j.core.Neo4jClient neo4jClient(org.neo4j.driver.Driver driver)
@Bean(value="neo4jTemplate") @ConditionalOnMissingBean(value=org.springframework.data.neo4j.core.Neo4jOperations.class) public org.springframework.data.neo4j.core.Neo4jTemplate neo4jTemplate(org.springframework.data.neo4j.core.Neo4jClient neo4jClient, org.springframework.data.neo4j.core.mapping.Neo4jMappingContext neo4jMappingContext, org.springframework.data.neo4j.core.DatabaseSelectionProvider databaseNameProvider)
@Bean(value="transactionManager") @ConditionalOnMissingBean(value=org.springframework.transaction.TransactionManager.class) public org.springframework.data.neo4j.core.transaction.Neo4jTransactionManager transactionManager(org.neo4j.driver.Driver driver, org.springframework.data.neo4j.core.DatabaseSelectionProvider databaseNameProvider, ObjectProvider<TransactionManagerCustomizers> optionalCustomizers)