#8 BeanModel: recursive FluentModel wrapper

Otwarty
otworzone 6 lat temu przez msieron · 1 komentarzy
msieron skomentował 6 lat temu

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 skomentował 3 lat temu
Właściciel

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.
Zaloguj się, aby dołączyć do tej rozmowy.
Brak kamienia milowego
Brak przypisania
2 uczestników
Ładowanie...
Anuluj
Zapisz
Nie ma jeszcze treści.