Class EmbeddedPubsubBootstrapConfiguration

java.lang.Object
com.playtika.test.pubsub.EmbeddedPubsubBootstrapConfiguration

@Configuration @ConditionalOnExpression("${embedded.containers.enabled:true}") @AutoConfigureAfter(com.playtika.test.common.spring.DockerPresenceBootstrapConfiguration.class) @ConditionalOnProperty(name="embedded.google.pubsub.enabled", matchIfMissing=true) @EnableConfigurationProperties(PubsubProperties.class) public class EmbeddedPubsubBootstrapConfiguration extends Object
  • Field Details

    • BEAN_NAME_EMBEDDED_GOOGLE_PUBSUB_RESOURCES_GENERATOR

      public static final String BEAN_NAME_EMBEDDED_GOOGLE_PUBSUB_RESOURCES_GENERATOR
      See Also:
    • BEAN_NAME_EMBEDDED_GOOGLE_PUBSUB_MANAGED_CHANNEL

      public static final String BEAN_NAME_EMBEDDED_GOOGLE_PUBSUB_MANAGED_CHANNEL
      See Also:
  • Constructor Details

    • EmbeddedPubsubBootstrapConfiguration

      public EmbeddedPubsubBootstrapConfiguration()
  • Method Details

    • pubsub

      @Bean(name="embeddedGooglePubsub", destroyMethod="stop") public org.testcontainers.containers.GenericContainer<?> pubsub(org.springframework.core.env.ConfigurableEnvironment environment, PubsubProperties properties)
    • managedChannel

      @Bean(name="embeddedGooglePubsubManagedChannel") public io.grpc.ManagedChannel managedChannel(@Qualifier("embeddedGooglePubsub") org.testcontainers.containers.GenericContainer<?> pubsub, PubsubProperties properties)
    • pubSubResourcesGenerator

      @Bean(name="embeddedGooglePubsubResourcesGenerator") public PubSubResourcesGenerator pubSubResourcesGenerator(@Qualifier("embeddedGooglePubsubManagedChannel") io.grpc.ManagedChannel managedChannel, PubsubProperties properties) throws IOException
      Throws:
      IOException