Hi all,
I need to use org.glassfish.internal.api.MasterPassword which is in
internal-api
in TranslatedConfigView which is in config-api.
like this
Globals.getDefaultHabitat().getByContract(MasterPassword.class)
internal-api depends on config-api so
I have moved MasterPassword to common-util so that there is no cyclic
dependency between config-api and internal-api.
However how do I access the contract without using
Globals.getDefaultHabitat() because Globals is also in internal api so I
cannot use that.
One option I was trying to experiment is make the TranslatedConfigView a
@Service and then use @Inject.
Do you see issues with this,
Please can you let me know.
Thanks,
Bhakti