coi-gov-pl / java-cascades

[WIP] Cascades - Provides a easy way to manage remote databases for development and test purposes
3 stars 2 forks source link

Externalize providers for PostgreSQL and Oracle to separate jars #20

Open cardil opened 6 years ago

cardil commented 6 years ago

Code for database providers (that uses native jdbc to create databases) should be externalized to separate jars. That's because those jars should became OSGi plugins in future.

Mind you that Cascades own persistence (Hibernate+PostgreSQL) shouldn't be moved. It's two separate things.

speedlog commented 6 years ago

I propose to do this when every feature (create template, delete template, create database instance, delete database instance) will work.

cardil commented 6 years ago

You can externalize providers without making OSGI modules. Just create some Maven submodules and add dependencies.

In that way you will have good separation from start and it will be easier to refactor in future.

cardil commented 6 years ago

Yesterday I made an example PostgreSQL plugin. I pushed it in a branch but I think not to GitHub 🤣.

I repush it today.

cardil commented 6 years ago

Check the code in https://github.com/coi-gov-pl/java-cascades/compare/feature/postgresql-plugin-as-osgi