aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/aai/graphgraph/Config.java
blob: ab364a5dbe9ec98aaee35925a28e117d9a8ef0f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package org.onap.aai.graphgraph;


import org.onap.aai.graphgraph.reader.DummySchemaReader;
import org.onap.aai.graphgraph.reader.SchemaRepository;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import java.util.Collections;

@Configuration
@ComponentScan("org.onap.aai.graphgraph")
public class Config {

    @Bean
    SchemaRepository createSchemaRepository(){
        DummySchemaReader dummyReader = new DummySchemaReader();
        SchemaRepository repository = new SchemaRepository(Collections.singletonList(dummyReader));
        return repository;
    }

}