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

com.arextest.storage.beans.ScenePoolProviderConfiguration Maven / Gradle / Ivy

There is a newer version: 1.3.4
Show newest version
package com.arextest.storage.beans;

import com.arextest.storage.repository.scenepool.ScenePoolFactory;
import com.arextest.storage.repository.scenepool.ScenePoolProviderImpl;
import com.arextest.storage.service.mockerhandlers.coverage.CoverageHandlerSwitch;
import com.arextest.storage.service.mockerhandlers.coverage.DefaultCoverageSwitch;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ScenePoolProviderConfiguration {
  @Bean
  @ConditionalOnMissingBean
  public CoverageHandlerSwitch register() {
    return new DefaultCoverageSwitch();
  }

  @Bean
  public ScenePoolProviderImpl getRecordingPool() {
    return new ScenePoolProviderImpl(ScenePoolFactory.RECORDING_SCENE_POOL);
  }

  @Bean
  public ScenePoolProviderImpl getReplayPool() {
    return new ScenePoolProviderImpl(ScenePoolFactory.REPLAY_SCENE_POOL);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy