172 Commits

Author SHA1 Message Date
Ben Hale
268be9f7c7 MySQL JDBC Format
[resolves #8]

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-11 08:47:35 -07:00
Ben Hale
58bd3c5953 Merge branch '4-db2'
Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-11 08:45:22 -07:00
Ben Hale
87a8ac1226 DB2 URL Format
[resolves #4]

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-11 08:45:13 -07:00
Ben Hale
b04c9207f1 Merge branch '2-README'
Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-11 08:41:01 -07:00
Ben Hale
f3929371f9 README
This change adds a README file containing information about using the project
and the properties that are set automatically.

[resolves #2]

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-11 08:40:04 -07:00
Ben Hale
30b1a88644 Isolate Boot-specific Processors
Previously, the Boot-specific processors were in the same package as the core
types.  This minimzed the visibility of some constructors used for testing,
but as the list of processors has grown (and will continue to grow), the core
types were being overwhelmed.

This change moves the Boot-specific processors out to an additional package
where they can be easily identified.

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-11 07:35:45 -07:00
Ben Hale
7491ff56e1 Polishing
Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-09 09:23:05 -07:00
Ben Hale
ff878c8c95 Single Project
And now we arrive at the end, a single concise project.

Signed-off-by: Ben Hale <bhale@vmware.com>
2020-05-09 09:03:58 -07:00
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