anchor.diff:  :github-repo: spring-cloud/spring-cloud-connectors
   :github-raw: http://raw.github.com/{github-repo}/{github-tag}
   :github-code: http://github.com/{github-repo}/tree/{github-tag}
  -:toc:
  +:toc: left
  +:toclevels: 3
   
   = Spring Cloud Connectors
   
  
positive.code: Cloud cloud = cloudFactory.getCloud();
  ----
  +
  Note that you must have a `CloudConnector` suitable for your deployment environment on your classpath.  For example, if you are deploying the application to Cloud Foundry, you must add the <<cloudfoundry-connector.adoc#,Cloud Foundry Connector>> to your classpath. If no suitable `CloudConnector` is found, the `getCloud()` method will throw a `CloudException`.
  
  * Use the `Cloud` instance to access application and service information and to create service connectors.
  
  
negative.code: 
  === Supporting New Service Types
  
  Extend `CloudFoundryServiceInfoCreator` with a creator for <<_adding_service_discovery,your service's `ServiceInfo` class>>.
  
  Add the fully-qualified class name for your creator to `META-INF/service/org.springframework.cloud.cloudfoundry.CloudFoundryServiceInfoCreator`.
  
  