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

ai.stapi.graphoperations.configuration.GraphReaderConfiguration Maven / Gradle / Ivy

There is a newer version: 0.3.2
Show newest version
package ai.stapi.graphoperations.configuration;

import ai.stapi.graphoperations.graphReader.GraphReader;
import ai.stapi.graphoperations.graphReader.mappingPartReadResolvers.AttributeDescriptionReadResolver;
import ai.stapi.graphoperations.graphReader.mappingPartReadResolvers.AttributeValueDescriptionReadResolver;
import ai.stapi.graphoperations.graphReader.mappingPartReadResolvers.EdgeDescriptionReadResolver;
import ai.stapi.graphoperations.graphReader.mappingPartReadResolvers.GraphDescriptionReadResolver;
import ai.stapi.graphoperations.graphReader.mappingPartReadResolvers.NodeDescriptionReadResolver;
import ai.stapi.graphoperations.graphReader.mappingPartReadResolvers.UuidDescriptionReadResolver;
import java.util.List;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

@AutoConfiguration
public class GraphReaderConfiguration {
  
  @Bean
  public GraphReader graphReader(
      List graphDescriptionResolvers
  ) {
    return new GraphReader(graphDescriptionResolvers);
  }
  
  @Bean
  public AttributeDescriptionReadResolver attributeDescriptionReadResolver() {
    return new AttributeDescriptionReadResolver();
  }
  
  @Bean
  public AttributeValueDescriptionReadResolver attributeValueDescriptionReadResolver() {
    return new AttributeValueDescriptionReadResolver();
  }
  
  @Bean
  public EdgeDescriptionReadResolver edgeDescriptionReadResolver() {
    return new EdgeDescriptionReadResolver();
  }
  
  @Bean
  public NodeDescriptionReadResolver nodeDescriptionReadResolver() {
    return new NodeDescriptionReadResolver();
  }
  
  @Bean
  public UuidDescriptionReadResolver uuidDescriptionReadResolver() {
    return new UuidDescriptionReadResolver();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy