Example #1
0
 public void runWithBundles(T configuration, Environment environment) throws Exception {
   for (Bundle bundle : bundles) {
     bundle.run(environment);
   }
   for (ConfiguredBundle<? super T> bundle : configuredBundles) {
     bundle.run(configuration, environment);
   }
 }
Example #2
0
 public void addBundle(Bundle bundle) {
   bundle.initialize(this);
   bundles.add(bundle);
 }