#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명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.