Cloud Foundry connector for spring-cloud
Provides Cloud Foundry connector with support for Mysql, Postgres, RabbitMQ, MongoDB, and Redis services.
Supporting additional services
The cloudfoundry-connector offers extending support for additional services
through the same ServiceLoader
mechanism used in the core project.
It allows extending to new services without modifying the cloudfoundry-connector
itself. All you need to do is:
- Create a new project declaring dependency of cloudfoundry-connector.
- Add one implementation of
CloudFoundryServiceInfoCreatorfor each service type you wish to extend. Along the way, you will, of course, add an implementation ofServiceInfo(consider extendingBaseServiceInfo), attach an@ServiceLabelannotation, and mark appropriate properties with@ServicePropertyannotation. - Add a file on classpath
META-INF/services/org.springframework.cloud.cloudfoundry.CloudFoundryServiceInfoCreatorand add all your implementations ofCloudFoundryServiceInfoCreator.