@Configuration public class ServiceBrokerAutoConfiguration extends Object
Auto-configuration
for the service broker implementation beans.
Provides a default CatalogService
bean if a Catalog
bean is provided. A catalog may be defined in
external configuration, or via a Spring bean.
Provides a NonBindableServiceInstanceBindingService
if a ServiceInstanceBindingService
is not
provided, indicating that the service broker provides no bindable services.
ServiceBrokerProperties
Modifier and Type | Class and Description |
---|---|
protected static class |
ServiceBrokerAutoConfiguration.CatalogPropertiesMinimalConfiguration
Provides a
Catalog bean when catalog properties are available in external configuration |
Constructor and Description |
---|
ServiceBrokerAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.cloud.servicebroker.service.CatalogService |
beanCatalogService(org.springframework.cloud.servicebroker.model.catalog.Catalog catalog)
Conditionally provides a
CatalogService bean |
org.springframework.cloud.servicebroker.service.ServiceInstanceBindingService |
nonBindableServiceInstanceBindingService()
Conditionally provides a
ServiceInstanceBindingService bean |
@Bean @ConditionalOnMissingBean(value=org.springframework.cloud.servicebroker.service.CatalogService.class) public org.springframework.cloud.servicebroker.service.CatalogService beanCatalogService(@Autowired(required=false) org.springframework.cloud.servicebroker.model.catalog.Catalog catalog)
CatalogService
beancatalog
- the catalog@Bean @ConditionalOnMissingBean(value=org.springframework.cloud.servicebroker.service.ServiceInstanceBindingService.class) public org.springframework.cloud.servicebroker.service.ServiceInstanceBindingService nonBindableServiceInstanceBindingService()
ServiceInstanceBindingService
bean