[Framework] Add extension sorter

Add priority ordering to loaded extensions in each category;
this allows control over the resulting order of extensions
acquired and used within the application. WTD-590
This commit is contained in:
Victor Woeltjen
2015-01-07 16:39:57 -08:00
parent 2bcb6a1a6e
commit 9d8885d48f
4 changed files with 129 additions and 18 deletions

View File

@ -16,5 +16,13 @@ define({
"tests": "test",
"configuration": {},
"extensions": {}
}
},
PRIORITY_LEVELS: {
"fallback": Number.NEGATIVE_INFINITY,
"default": 100,
"optional": 200,
"preferred": 400,
"mandatory": Number.POSITIVE_INFINITY
},
DEFAULT_PRIORITY: 0
});