org.cloudfoundry.community.servicebroker.model.Catalog Java Examples
The following examples show how to use
org.cloudfoundry.community.servicebroker.model.Catalog.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BeanCatalogServiceTest.java From spring-boot-cf-service-broker with Apache License 2.0 | 5 votes |
@Before public void setup() { serviceDefinition = new ServiceDefinition(SVC_DEF_ID, "Name", "Description", true, null); List<ServiceDefinition> defs = new ArrayList<ServiceDefinition>(); defs.add(serviceDefinition); catalog = new Catalog(defs); service = new BeanCatalogService(catalog); }
Example #2
Source File: BrokerConfiguration.java From s3-cf-service-broker with Apache License 2.0 | 5 votes |
@Bean public Catalog catalog() throws IOException { ServiceDefinition serviceDefinition = new ServiceDefinition("s3", "amazon-s3", "Amazon S3 is storage for the Internet.", true, getPlans(), getTags(), getServiceDefinitionMetadata(), Arrays.asList("syslog_drain"), null); return new Catalog(Arrays.asList(serviceDefinition)); }
Example #3
Source File: BrokerConfiguration.java From postgresql-cf-service-broker with Apache License 2.0 | 4 votes |
@Bean public Catalog catalog() throws IOException { ServiceDefinition serviceDefinition = new ServiceDefinition("pg", "PostgreSQL", "PostgreSQL on shared instance.", true, false, getPlans(), getTags(), getServiceDefinitionMetadata(), Arrays.asList("syslog_drain"), null); return new Catalog(Arrays.asList(serviceDefinition)); }
Example #4
Source File: CatalogController.java From spring-boot-cf-service-broker with Apache License 2.0 | 4 votes |
@RequestMapping(value = BASE_PATH, method = RequestMethod.GET) public @ResponseBody Catalog getCatalog() { logger.debug("GET: " + BASE_PATH + ", getCatalog()"); return service.getCatalog(); }
Example #5
Source File: BeanCatalogService.java From spring-boot-cf-service-broker with Apache License 2.0 | 4 votes |
@Autowired public BeanCatalogService(Catalog catalog) { this.catalog = catalog; initializeMap(); }
Example #6
Source File: BeanCatalogService.java From spring-boot-cf-service-broker with Apache License 2.0 | 4 votes |
@Override public Catalog getCatalog() { return catalog; }
Example #7
Source File: ServiceBrokerAutoConfiguration.java From spring-boot-cf-service-broker with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean(CatalogService.class) public CatalogService beanCatalogService(Catalog catalog) { return new BeanCatalogService(catalog); }
Example #8
Source File: CatalogFixture.java From spring-boot-cf-service-broker with Apache License 2.0 | 4 votes |
public static Catalog getCatalog() { return new Catalog(ServiceFixture.getAllServices()); }
Example #9
Source File: CatalogService.java From spring-boot-cf-service-broker with Apache License 2.0 | 2 votes |
/** * @return The catalog of services provided by this broker. */ Catalog getCatalog();