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

Document Server-Internal Decoration Library

    XMLWordPrintable

Details

    • Task
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • None
    • Fully Compatible

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-servicearch Backlog - Service Architecture
              ben.caimano@mongodb.com Benjamin Caimano (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: