[
https://issues.apache.org/jira/browse/CAY-2107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrus Adamchik closed CAY-2107.
--------------------------------
Resolution: Fixed
Fix Version/s: 4.0.M4
> cayenne-crypto: Lazy initialization of crypto subsystem
> -------------------------------------------------------
>
> Key: CAY-2107
> URL: https://issues.apache.org/jira/browse/CAY-2107
> Project: Cayenne
> Issue Type: Improvement
> Reporter: Andrus Adamchik
> Assignee: Andrus Adamchik
> Fix For: 4.0.M4
>
>
> I have a deployment scenario where secret keys are not available on app
> startup, and users "unlock" the KeySource at a later time. Until then I'd
> still like my Cayenne stack to be operational for entities that do not
> require encryption. Currently this is not possible as
> DefaultValueTransformerFactory and DefaultBytesTransformerFactory are
> initialized eagerly and that requires a working KeySource.
> A possible solution to that is lazy initialization of
> DefaultValueTransformerFactory and DefaultBytesTransformerFactory which can
> be achieved via decoration in DI, that injects decorated instance as a
> Provider.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)