#8 BeanModel: recursive FluentModel wrapper

Ouvert
Créé il y a 6 ans par msieron · 1 commentaires
msieron a commenté il y a 6 ans

We want method which returns map of maps, because we want to pass full objects into handlebars. Returned view can be read-only, but it should wrap every result as fluent map. If return value is some collection, we should wrap them, to return wrapped elements. Essentially we should implement wrappers for:

  • object
  • Map
  • List
  • Collection
  • Iterable
  • Iterator
We want method which returns map of maps, because we want to pass full objects into handlebars. Returned view can be read-only, but it should wrap every result as fluent map. If return value is some collection, we should wrap them, to return wrapped elements. Essentially we should implement wrappers for: - object - Map - List - Collection - Iterable - Iterator
ranides a commenté il y a 3 ans
Propriétaire

Change behaviour of method BeanModel#fluent(object)?

It should be lazy wrapper to avoid performance hit. Returned fluent maps should be memoized.

Change behaviour of method `BeanModel#fluent(object)`? It should be lazy wrapper to avoid performance hit. Returned fluent maps should be memoized.
Connectez-vous pour rejoindre cette conversation.
Aucun jalon
Pas d'assignataire
2 Participants
Chargement…
Annuler
Enregistrer
Il n'existe pas encore de contenu.