cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Hair <j...@greenqloud.com>
Subject Controlling Load Order of Modules
Date Thu, 18 Feb 2016 10:47:16 GMT
Hi,

We've run across an interesting case where we have the need to load a
module before other modules. Normally this kind of thing is handled by
putting the module up higher in the hierarchy. Our problem is that this
module is part of core, and to make it load first we'd have to put it above
core.

Is there any established method for controlling the load order of
sub-modules within a module? Currently they are sorted by a TreeMap using
natural sorting. We've implemented a comparator to force our module to the
top of the list, but this seems like a hack (though it's much better than
giving our module the name "aaa-ourmodule".)

Jeff

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message