> +      List<Container> containers = containerRepository.findAllContainers();
> +      ImmutableList.Builder<String> result = ImmutableList.builder();
> +      for (Container c : containers) {
> +         result.add(c.getName());
> +      }
> +      return result.build();
> +   }
> +
> +   @Override
> +   @Transactional
> +   public boolean createContainerInLocation(String name, Location location,
> +         CreateContainerOptions createContainerOptions) {
> +      logger.debug("Creating container %s", name);
> +      jdbcContainerNameValidator.validate(name);
> +      containerRepository.create(Container.builder().name(name).build());
> +      return true;

I can return false when a persistence exception raises, but I will have to make 
a service layer to handle the transactions then. I'll fix this.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/173/files#r29954036

Reply via email to