Class BeanCatalogService

java.lang.Object
org.springframework.cloud.servicebroker.service.BeanCatalogService
All Implemented Interfaces:
CatalogService

public class BeanCatalogService extends Object implements CatalogService
An implementation of the CatalogService that allows the Catalog to be specified as a Spring Bean.
Author:
S Greenberg, Scott Frederick
  • Constructor Details

    • BeanCatalogService

      public BeanCatalogService(Catalog catalog)
      Construct a service with the provided bean.
      Parameters:
      catalog - the Catalog bean
  • Method Details

    • getCatalog

      public reactor.core.publisher.Mono<Catalog> getCatalog()
      Description copied from interface: CatalogService
      Return the catalog of services provided by the service broker.
      Specified by:
      getCatalog in interface CatalogService
      Returns:
      the catalog of services
    • getServiceDefinition

      public reactor.core.publisher.Mono<ServiceDefinition> getServiceDefinition(String serviceId)
      Description copied from interface: CatalogService
      Get a service definition from the catalog by ID.
      Specified by:
      getServiceDefinition in interface CatalogService
      Parameters:
      serviceId - the ID of the service definition in the catalog
      Returns:
      the service definition, or null if it doesn't exist