[SERVER-17816] Introduce a Decorable mix-in to allow modules to attach data to common session objects Created: 31/Mar/15  Updated: 25/Jan/17  Resolved: 03/Apr/15

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.1.1

Type: Bug Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

For example, this will allow modules to decorate the Client object with private data, without having to expose that private data to every module. It's a form of dependency injection or dynamic type extension.



 Comments   
Comment by Githook User [ 04/May/15 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-17816 Make Decoration pointer method defer to reference method

By eagerly dereferencing the D-typed pointer the compiler can assume it is
non-NULL and omits a NULL check.
Branch: master
https://github.com/mongodb/mongo/commit/47b7674dcddf18013934a0f81725c5215ee93ffd

Comment by Githook User [ 03/Apr/15 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-17816 Fix DecorationRegistry::declareDecoration compile error.
Branch: master
https://github.com/mongodb/mongo/commit/cbacbd984924f1ad5f9ddd3f00f8ae71c65bed9d

Comment by Githook User [ 03/Apr/15 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-17816 Implementation of a generic decoration facility.
Branch: master
https://github.com/mongodb/mongo/commit/364cc79cc3480fd04249d4fcdb65b55e6dd58faa

Generated at Thu Feb 08 03:45:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.