Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Auto-reconfiguration functionality for the Java Buildpack

Spring Data Redis/Jedis compatibility

The first run of the new versions indicated that there were
compatibility problems between versions of Spring Data Redis and
Jedis.  This change pins their versions for certain builds to ensure
compatibility.
latest commit 139d96925c
Ben Hale nebhale authored April 03, 2014
Octocat-spinner-32 .idea Rethinking Auto-reconfiguration April 02, 2014
Octocat-spinner-32 auto-reconfiguration Spring Data Redis/Jedis compatibility April 03, 2014
Octocat-spinner-32 play-jpa-plugin Spring Data Redis/Jedis compatibility April 03, 2014
Octocat-spinner-32 .gitignore Rethinking Auto-reconfiguration April 02, 2014
Octocat-spinner-32 .travis.yml Spring Data Redis/Jedis compatibility April 03, 2014
Octocat-spinner-32 CONTRIBUTING.md Rethinking Auto-reconfiguration April 02, 2014
Octocat-spinner-32 LICENSE Rethinking Auto-reconfiguration April 02, 2014
Octocat-spinner-32 NOTICE Rethinking Auto-reconfiguration April 02, 2014
Octocat-spinner-32 README.md Rethinking Auto-reconfiguration April 02, 2014
Octocat-spinner-32 java-buildpack-auto-reconfiguration.iml Rethinking Auto-reconfiguration April 02, 2014
Octocat-spinner-32 pom.xml Version Updates April 02, 2014
README.md

Java Buildpack Auto-Reconfiguration

Build Status

This repository contains the auto-reconfiguration functionality for Spring and Play Framework auto-reconfiguration. It also contains a replacement Play Framework JPA Plugin that can be properly auto-reconfigured.

What is Auto-Reconfiguration?

Auto-reconfiguration consists of three parts. First, it adds the cloud profile to Spring's list of active profiles. Second it exposes all of the properties contributed by Cloud Foundry as a PropertySource in the ApplicationContext. Finaly it re-writes the bean defintitions of various types to connect automatically with services bound to the application. The types that are rewritten are as follows:

Bean Type Service Type
javax.sql.DataSource Relational Data Services (e.g. ClearDB, ElephantSQL)
org.springframework.amqp.rabbit.connection.ConnectionFactory RabbitMQ Service (e.g. CloudAMQP)
org.springframework.data.mongodb.MongoDbFactory Mongo Service (e.g. MongoLab)
org.springframework.data.redis.connection.RedisConnectionFactory Redis Service (e.g. Redis Cloud)
org.springframework.orm.hibernate3.AbstractSessionFactoryBean Relational Data Services (e.g. ClearDB, ElephantSQL)
org.springframework.orm.hibernate4.LocalSessionFactoryBean Relational Data Services (e.g. ClearDB, ElephantSQL)
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean Relational Data Services (e.g. ClearDB, ElephantSQL)

More information about Spring on Cloud Foundry can be found here:

cloudfoundry-runtime

This repository was previously home to the cloudfoundry-runtime project. That project has been discontinued in favor of the spring-cloud project. The last commit in this repository that includes the cloudfoundry-runtime code has been tagged as cloudfoundry-runtime.

Contributing

Pull requests are welcome; see the contributor guidelines for details.

License

This buildpack is released under version 2.0 of the Apache License.

Something went wrong with that request. Please try again.