Package com.playtika.test.pubsub
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 Summary
Fields Modifier and Type Field Description static StringBEAN_NAME_EMBEDDED_GOOGLE_PUBSUB_MANAGED_CHANNELstatic StringBEAN_NAME_EMBEDDED_GOOGLE_PUBSUB_RESOURCES_GENERATOR
-
Constructor Summary
Constructors Constructor Description EmbeddedPubsubBootstrapConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.ManagedChannelmanagedChannel(org.testcontainers.containers.GenericContainer pubsub, PubsubProperties properties)org.testcontainers.containers.GenericContainerpubsub(org.springframework.core.env.ConfigurableEnvironment environment, PubsubProperties properties)PubSubResourcesGeneratorpubSubResourcesGenerator(io.grpc.ManagedChannel managedChannel, PubsubProperties properties)
-
-
-
Field Detail
-
BEAN_NAME_EMBEDDED_GOOGLE_PUBSUB_RESOURCES_GENERATOR
public static final String BEAN_NAME_EMBEDDED_GOOGLE_PUBSUB_RESOURCES_GENERATOR
- See Also:
- Constant Field Values
-
BEAN_NAME_EMBEDDED_GOOGLE_PUBSUB_MANAGED_CHANNEL
public static final String BEAN_NAME_EMBEDDED_GOOGLE_PUBSUB_MANAGED_CHANNEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-