Class EtaRegionConnectorSpringConfig

java.lang.Object
energy.eddie.regionconnector.de.eta.EtaRegionConnectorSpringConfig

@Configuration public class EtaRegionConnectorSpringConfig extends Object
Spring configuration for the German (DE) ETA Plus region connector. This configuration class sets up beans and dependencies required by the region connector.
  • Constructor Details

    • EtaRegionConnectorSpringConfig

      public EtaRegionConnectorSpringConfig()
  • Method Details

    • eventBus

      @Bean public EventBus eventBus()
      Create the event bus for event sourcing. This bean is required for all region connectors.
      Returns:
      the event bus implementation
    • deEtaOutbox

      @Bean public Outbox deEtaOutbox(EventBus eventBus, DePermissionEventRepository eventRepository)
      Create the outbox for event sourcing
      Parameters:
      eventBus - the event bus for publishing events
      eventRepository - the permission event repository
      Returns:
      the outbox implementation
    • deConnectionStatusMessageHandler

      @Bean public ConnectionStatusMessageHandler<DePermissionRequest> deConnectionStatusMessageHandler(EventBus eventBus, DePermissionRequestRepository repository)
      Create the connection status message handler
      Parameters:
      eventBus - the event bus
      repository - the permission request repository
      Returns:
      the connection status message handler
    • dePermissionMarketDocumentMessageHandler

      @Bean public PermissionMarketDocumentMessageHandler<DePermissionRequest> dePermissionMarketDocumentMessageHandler(EventBus eventBus, DePermissionRequestRepository repository, DataNeedsService dataNeedsService, DeConfiguration configuration, CommonInformationModelConfiguration cimConfig, TransmissionScheduleProvider<DePermissionRequest> transmissionScheduleProvider)
      Create the permission market document message handler
      Parameters:
      eventBus - the event bus
      repository - the permission request repository
      dataNeedsService - the data needs service
      configuration - the DE configuration
      cimConfig - the CIM configuration
      transmissionScheduleProvider - the transmission schedule provider
      Returns:
      the permission market document message handler
    • deTransmissionScheduleProvider

      @Bean public TransmissionScheduleProvider<DePermissionRequest> deTransmissionScheduleProvider()
      Create a transmission schedule provider for CIM documents
      Returns:
      the transmission schedule provider
    • dataNeedCalculationService

      @Bean public DataNeedCalculationService<DataNeed> dataNeedCalculationService(DataNeedsService dataNeedsService)
      Create the data need calculation service This service is critical for the Demo Button to determine if the region connector supports a given data need.
      Parameters:
      dataNeedsService - the data needs service
      Returns:
      the data need calculation service
    • deEtaWebClient

      @Bean public org.springframework.web.reactive.function.client.WebClient deEtaWebClient()
      Create a WebClient for making HTTP requests to the ETA Plus API
      Returns:
      the configured WebClient