From 838a86830e6750a6cf553354901990c26f9e1ecd Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 7 Apr 2015 20:02:05 -0700 Subject: [PATCH] [Containment] Add bundle declaration WTD-962. --- platform/containment/bundle.json | 11 +++++++++++ platform/containment/src/CapabilityTable.js | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 platform/containment/bundle.json diff --git a/platform/containment/bundle.json b/platform/containment/bundle.json new file mode 100644 index 0000000000..483ecb0677 --- /dev/null +++ b/platform/containment/bundle.json @@ -0,0 +1,11 @@ +{ + "extensions": { + "policies": [ + { + "category": "composition", + "implementation": "CompositionPolicy.js", + "depends": [ "typeService", "capabilityService" ] + } + ] + } +} \ No newline at end of file diff --git a/platform/containment/src/CapabilityTable.js b/platform/containment/src/CapabilityTable.js index 6a4f4a1e54..7b33ea681f 100644 --- a/platform/containment/src/CapabilityTable.js +++ b/platform/containment/src/CapabilityTable.js @@ -8,7 +8,9 @@ define( /** * Build a table indicating which types are expected to expose - * which capabilities. + * which capabilities. This supports composition policy (rules + * for which objects can contain which other objects) which + * sometimes is determined based on the presence of capabilities. */ function CapabilityTable(typeService, capabilityService) { var table = {};