mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 14:18:16 +00:00
[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:
@ -26,23 +26,26 @@ define(
|
||||
'./resolve/RequireConfigurator',
|
||||
'./register/CustomRegistrars',
|
||||
'./register/ExtensionRegistrar',
|
||||
'./register/ExtensionSorter',
|
||||
'./bootstrap/ApplicationBootstrapper'
|
||||
],
|
||||
function (require,
|
||||
es6promise,
|
||||
angular,
|
||||
angularRoute,
|
||||
Constants,
|
||||
FrameworkInitializer,
|
||||
BundleLoader,
|
||||
ImplementationLoader,
|
||||
ExtensionResolver,
|
||||
BundleResolver,
|
||||
RequireConfigurator,
|
||||
CustomRegistrars,
|
||||
ExtensionRegistrar,
|
||||
ApplicationBootstrapper
|
||||
) {
|
||||
function (
|
||||
require,
|
||||
es6promise,
|
||||
angular,
|
||||
angularRoute,
|
||||
Constants,
|
||||
FrameworkInitializer,
|
||||
BundleLoader,
|
||||
ImplementationLoader,
|
||||
ExtensionResolver,
|
||||
BundleResolver,
|
||||
RequireConfigurator,
|
||||
CustomRegistrars,
|
||||
ExtensionRegistrar,
|
||||
ExtensionSorter,
|
||||
ApplicationBootstrapper
|
||||
) {
|
||||
"use strict";
|
||||
|
||||
// Get a reference to Angular's injector, so we can get $http and $log
|
||||
@ -68,6 +71,7 @@ define(
|
||||
registrar = new ExtensionRegistrar(
|
||||
app,
|
||||
new CustomRegistrars(app, $log),
|
||||
new ExtensionSorter($log),
|
||||
$log
|
||||
),
|
||||
bootstrapper = new ApplicationBootstrapper(
|
||||
|
Reference in New Issue
Block a user