All Downloads are FREE. Search and download functionalities are using the official Maven repository.

angry1980.audio.Neo4jDAOConfig Maven / Gradle / Ivy

There is a newer version: 0.0.10
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy