#8 BeanModel: recursive FluentModel wrapper

Abierta
abierta hace 6 años por msieron · 1 comentarios

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 comentado hace 3 años
Propietario

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.
Inicie sesión para unirse a esta conversación.
Sin Milestone
Sin asignado
2 participantes
Cargando...
Cancelar
Guardar
Aún no existe contenido.