#8 BeanModel: recursive FluentModel wrapper

开启中
msieron6 年之前创建 · 1 条评论
msieron 评论于 6 年之前

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 评论于 3 年之前
所有者

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.
登录 并参与到对话中。
未选择里程碑
未指派成员
2 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。