package com.qaup.collision.config;

import com.qaup.collision.config.properties.AirportRoadsProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * Configuration class responsible for loading the airport_roads.yaml file
 * and enabling the binding of its properties to the AirportRoadsProperties bean.
 */
@Configuration
@EnableConfigurationProperties(AirportRoadsProperties.class)
@PropertySource(value = "classpath:config/airport_roads.yaml", factory = YamlPropertySourceFactory.class)
public class RoadNetworkConfig {
    // This class primarily uses annotations to configure the loading
    // of road network properties. No explicit bean definitions are needed here
    // for the properties themselves, as @EnableConfigurationProperties handles it.
} 