Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-48752

Document Server-Internal Decoration Library

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Service Arch
    • Fully Compatible

      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:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: