org.springframework.data.neo4j.config
Class Neo4jConfiguration
java.lang.Object
org.springframework.data.neo4j.config.Neo4jConfiguration
- Direct Known Subclasses:
- Neo4jAspectConfiguration
@Configuration
public abstract class Neo4jConfiguration
- extends Object
Abstract base class for code based configuration of Spring managed Neo4j infrastructure.
Subclasses are required to provide an implementation of graphDbService ....
- Author:
- Thomas Risberg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Neo4jConfiguration
public Neo4jConfiguration()
getGraphDatabaseService
public org.neo4j.graphdb.GraphDatabaseService getGraphDatabaseService()
setGraphDatabaseService
public void setGraphDatabaseService(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService)
mappingInfrastructure
@Bean
public MappingInfrastructure mappingInfrastructure()
throws Exception
- Throws:
Exception
neo4jTemplate
@Bean
public Neo4jTemplate neo4jTemplate()
throws Exception
- Throws:
Exception
relationshipTypeRepresentationStrategy
@Bean
public TypeRepresentationStrategy<org.neo4j.graphdb.Relationship> relationshipTypeRepresentationStrategy()
throws Exception
- Throws:
Exception
nodeTypeRepresentationStrategy
@Bean
public TypeRepresentationStrategy<org.neo4j.graphdb.Node> nodeTypeRepresentationStrategy()
throws Exception
- Throws:
Exception
typeRepresentationStrategyFactory
@Bean
public TypeRepresentationStrategyFactory typeRepresentationStrategyFactory()
throws Exception
- Throws:
Exception
entityStateHandler
@Bean
public EntityStateHandler entityStateHandler()
throws Exception
- Throws:
Exception
nodeTypeMapper
@Bean
public org.springframework.data.convert.TypeMapper<org.neo4j.graphdb.Node> nodeTypeMapper()
throws Exception
- Throws:
Exception
relationshipTypeMapper
@Bean
public org.springframework.data.convert.TypeMapper<org.neo4j.graphdb.Relationship> relationshipTypeMapper()
throws Exception
- Throws:
Exception
entityFetchHandler
@Bean
public Neo4jEntityFetchHandler entityFetchHandler()
throws Exception
- Throws:
Exception
nodeStateTransmitter
@Bean
public SourceStateTransmitter<org.neo4j.graphdb.Node> nodeStateTransmitter()
throws Exception
- Throws:
Exception
conversionService
@Bean
protected ConversionService conversionService()
throws Exception
- Throws:
Exception
graphRelationshipInstantiator
@Bean
protected RelationshipEntityInstantiator graphRelationshipInstantiator()
throws Exception
- Throws:
Exception
graphEntityInstantiator
@Bean
protected EntityInstantiator<org.neo4j.graphdb.Node> graphEntityInstantiator()
throws Exception
- Throws:
Exception
mappingContext
@Bean
public Neo4jMappingContext mappingContext()
throws Exception
- Throws:
Exception
relationshipEntityStateFactory
@Bean
public RelationshipEntityStateFactory relationshipEntityStateFactory()
throws Exception
- Throws:
Exception
nodeEntityStateFactory
@Bean
public NodeEntityStateFactory nodeEntityStateFactory()
throws Exception
- Throws:
Exception
nodeDelegatingFieldAccessorFactory
@Bean
public DelegatingFieldAccessorFactory nodeDelegatingFieldAccessorFactory()
throws Exception
- Throws:
Exception
relationshipDelegatingFieldAccessorFactory
@Bean
public DelegatingFieldAccessorFactory relationshipDelegatingFieldAccessorFactory()
throws Exception
- Throws:
Exception
neo4jTransactionManager
@Bean(name={"neo4jTransactionManager","transactionManager"})
@Qualifier(value="neo4jTransactionManager")
public PlatformTransactionManager neo4jTransactionManager()
createJtaTransactionManager
protected JtaTransactionManager createJtaTransactionManager()
graphDatabase
@Bean
public GraphDatabase graphDatabase()
configurationCheck
@Bean
public ConfigurationCheck configurationCheck()
throws Exception
- Throws:
Exception
persistenceExceptionTranslator
@Bean
public PersistenceExceptionTranslator persistenceExceptionTranslator()
Copyright © 2011 SpringSource. All Rights Reserved.