Skip to content

Commit

Permalink
Module change of OSB Framework update
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Hiemer committed Mar 26, 2018
1 parent 8fd8b1d commit ff86b2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion osb-core
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,16 @@
*/
package de.evoila.cf.broker.service.custom;

import java.math.BigInteger;
import java.security.SecureRandom;
import java.util.HashMap;
import java.util.Map;

import de.evoila.cf.broker.model.*;
import de.evoila.cf.broker.service.impl.BindingServiceImpl;
import de.evoila.cf.broker.util.RandomString;
import de.evoila.cf.broker.util.ServiceInstanceUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import de.evoila.cf.broker.exception.ServiceBrokerException;
import de.evoila.cf.broker.service.impl.BindingServiceImpl;
import java.util.HashMap;
import java.util.Map;

/**
* @author Johannes Hiemer.
Expand All @@ -30,8 +26,8 @@ public class ExampleBindingService extends BindingServiceImpl {
RandomString randomString = new RandomString(10);

@Override
protected Map<String, Object> createCredentials(String bindingId, ServiceInstance serviceInstance,
Plan plan, ServerAddress host) throws ServiceBrokerException {
protected Map<String, Object> createCredentials(String bindingId, ServiceInstanceBindingRequest serviceInstanceBindingRequest,
ServiceInstance serviceInstance, Plan plan, ServerAddress host) {
String endpoint = ServiceInstanceUtils.connectionUrl(serviceInstance.getHosts());

if (host != null)
Expand All @@ -48,7 +44,7 @@ protected Map<String, Object> createCredentials(String bindingId, ServiceInstanc
}

@Override
protected void deleteBinding(ServiceInstanceBinding binding, ServiceInstance serviceInstance, Plan plan) throws ServiceBrokerException {
protected void deleteBinding(ServiceInstanceBinding binding, ServiceInstance serviceInstance, Plan plan) {
log.info("Unbinding the Example Service...");
}

Expand Down

0 comments on commit ff86b2e

Please sign in to comment.