Document Server-Internal Decoration Library

XMLWordPrintableJSON

    • Server Programmability
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      We have a special decoration library that allows for dependency inversion for components. It lives in src/mongo/util.

      Notable classes include:

      • Decoration
      • Decorable
      • DecorationContainer
      • DecorationRegistry

      Decorations are occasionally surprising, it's important that we make it clear how and when these objects are allocated, constructed, destructed, and deallocated.

      Since decorations are mostly used in conjunction with context objects, we can document them as a single section in src/mongo/util/README.md.

      This is intended to be abstract documentation, describe relationships and state transitions not code in common language.

            Assignee:
            Unassigned
            Reporter:
            Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: