diff options
author | liamfallon <liam.fallon@est.tech> | 2021-01-18 11:34:12 +0000 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2021-01-19 15:07:24 +0000 |
commit | 924bdf916ca8d98999f30616324d4c4a07f7966d (patch) | |
tree | 304d1ab7d688a522f5f87a4de4f67073b453bd91 /models-provider/src/main/resources/dummyimpl/DummyToscaPolicyGetResponse.json | |
parent | 5b577fd7cc40eaad1a1e5db2d43ef9ffe820e9a2 (diff) |
Allow providers other than PolicyModelsProvider
This change separates the database initiation and close functions of the
DatabasePolicyModelsProviderImpl class into an abstract class that does
the database DAO initiation and closing, and a domain specific part,
that does the manipulation of the policy models in the database.
This means that other providers, that wish to manipulate other objects
in the database, can specialize the AbstractModelsProvider class and use
its common DAO initiation and clsoing functionality, but can have their
own domain specific code.
The abstract class also now supports the Closeable interface.
Note that the exiting JUnit tests provide 100% coverage on
AbstractModelsProvider.
Issue-ID: POLICY-2971
Change-Id: Ibe59c02ab127ddbd9355d892b94a5d315507a8e6
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'models-provider/src/main/resources/dummyimpl/DummyToscaPolicyGetResponse.json')
0 files changed, 0 insertions, 0 deletions