The PolarisEntityManager is almost entirely used as a means to access the PolarisMetaStoreManager and the RealmEntityManagerFactory is really just an alternative to the MetaStoreManagerFactory. In order to narrow dependencies (as described in https://github.com/apache/polaris/pull/417 ), so that components can declare dependency only on the interfaces they need (e.g., PolarisGrantManager or PolarisCredentialVendor), this removes most references to the PolarisEntityManager and uses the PolarisMetaStoreManager directly. This will make declaring dependencies on pluggable components (like authorization grants) easier.
The only piece of logic the PolarisEntityManager actually implements is the construction and preparation of the Resolver, so its getter methods are removed and only the classes that require a Resolver have any dependency on the PolarisEntityManager.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Documentation update
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Interface-only changes, so all existing unit and integration tests still pass.
Test Configuration:
Hardware:
Toolchain:
SDK:
Checklist:
Please delete options that are not relevant.
[X] I have performed a self-review of my code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[ ] If adding new functionality, I have discussed my implementation with the community using the linked GitHub issue
Description
The
PolarisEntityManager
is almost entirely used as a means to access thePolarisMetaStoreManager
and theRealmEntityManagerFactory
is really just an alternative to theMetaStoreManagerFactory
. In order to narrow dependencies (as described in https://github.com/apache/polaris/pull/417 ), so that components can declare dependency only on the interfaces they need (e.g.,PolarisGrantManager
orPolarisCredentialVendor
), this removes most references to thePolarisEntityManager
and uses thePolarisMetaStoreManager
directly. This will make declaring dependencies on pluggable components (like authorization grants) easier.The only piece of logic the
PolarisEntityManager
actually implements is the construction and preparation of theResolver
, so its getter methods are removed and only the classes that require aResolver
have any dependency on thePolarisEntityManager
.Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Interface-only changes, so all existing unit and integration tests still pass.
Test Configuration:
Checklist:
Please delete options that are not relevant.