Commit Graph

14 Commits

Author SHA1 Message Date
Ben Hale
04eed55e6a DataSource BindingsPropertiesProcessors
Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-09 08:54:23 -07:00
Ben Hale
b3d33907cc RedisBindingsPropertiesProcessor
Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-09 08:04:26 -07:00
Ben Hale
ee20ec4e28 MongoDbBindingsPropertiesProcessor
Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-09 07:59:09 -07:00
Ben Hale
970620621c CassandraBindingsPropertiesProcessor
Now tell me you don't love that implementation!

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-09 07:50:15 -07:00
Ben Hale
cd3ddc2799 BindingsEnvironmentPostProcessor
The previous implementation was *so* complex!  I realize that you grabbed it
from the previous implementation, but you ran into one of our biggest
failings, too much complexity, too early.  Among other things the looping
priority was inverted (looping on the wrong thing).  This simplifies the whole
into a handful of lines, and once again notice the judicious use of
constructors to make it testable.

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-09 07:24:22 -07:00
Ben Hale
d3fd15f790 Binding
This time, the same kinds of simplifcations before.  Also added the two
methods that we added in libcnb.

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-08 18:04:34 -07:00
Ben Hale
71bfec3084 Bindings
* Simplify name from CnbBindings (a convention that makes my eyes bleed) so
that you aren't stuttering.  I'm still a bit undecided on the naming of the
modules themselves as well.

* Documentation, documentation, documentation!

* Lots of the final keyword.  Prevents unanticipated modification via extension.

* Constructor/Method overloading allows you to isolate the behaviors that are
really hard to test.  Note that I've isolated everything that needs to read
from the environment and feel confident that the methods that include it are
so trivial they're not worth testing.  Some overloads are non-public to enable
testing but not later usage.

* Since this is a public API, I'm being really verbose with the nullability
annotations.  Most of the time you wouldn't use them, by they do make IDE
users' lives better.

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-08 17:20:58 -07:00
Ben Hale
80941c6fe8 POM File Cleanup
Previously there was a lot of cruft in the POM file that related to previous
examples of this library.  When in doubt, trust Boot's opinions and minimize
your POM's as much as possible.  We can always add it back in the future.

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-08 15:50:46 -07:00
Emily Casey
78d1c4b749 Adds more processors
* redis, mongo, cassandra
* still missing amqp

Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-04-28 17:47:30 -04:00
Emily Casey
8f19604a92 Rename JdbcUrlCreator -> JdbcBinding
Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-04-28 16:56:49 -04:00
Emily Casey
54ac69e1bd Adds .mvn
Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-04-28 16:44:08 -04:00
Emily Casey
6b7903e88a Adds more jdbc kinds
* db2, oracle, postgres, sqlserver

Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-04-28 16:43:11 -04:00
Emily Casey
98187447bf remove eclipse config
Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-04-28 16:15:53 -04:00
Emily Casey
de13fcd0f0 Initial commit
* sets up framework
* provides mysql binding

Signed-off-by: Emily Casey <ecasey@pivotal.io>
2020-04-28 16:14:37 -04:00