angry1980.audio.Neo4jDAOConfig Maven / Gradle / Ivy
package angry1980.audio;
import angry1980.audio.dao.*;
import org.neo4j.graphdb.GraphDatabaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan(value = {"angry1980.audio.config"})
public class Neo4jDAOConfig {
@Autowired
private GraphDatabaseService graphDB;
@Bean
public TrackDAO trackDAO(){
return new TrackDAONeo4jImpl(graphDB);
}
@Bean
public TrackSimilarityDAO trackSimilarityDAO(){
return new TrackSimilarityDAONeo4jImpl(graphDB);
}
}