TmdbAutoConfiguration

@Configuration
class TmdbAutoConfiguration

Autoconfigures a TmdbClient bean if it doesn't already exist.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
@Bean
@ConditionalOnMissingBean(value = [TmdbApiKeyProvider::class])
@ConditionalOnExpression(value = "'${tmdb-client.api-key:#{systemEnvironment['TMDB_API_KEY']}}'!=''")
fun apiKeyProvider(@Value(value = "${tmdb-client.api-key:#{systemEnvironment['TMDB_API_KEY']}}") apiKey: String): TmdbApiKeyProvider
Link copied to clipboard
@Bean
@ConditionalOnMissingBean(value = [HttpClientFactory::class])
fun contextWebClientFactory(applicationContext: ApplicationContext): HttpClientFactory
Link copied to clipboard
@Bean
@ConditionalOnMissingBean(value = [TmdbClient::class])
fun tmdbClient(httpClientFactory: HttpClientFactory, apiKeyProvider: TmdbApiKeyProvider): TmdbClient