コード例 #1
0
ファイル: AquaModule.java プロジェクト: mhus/mhus-inka
 public void loadResources() throws Exception {
   ResApplication resApp =
       (ResApplication) getAqua().getAquaApplication(ResApplication.class.getCanonicalName());
   IConfig config = getConfiguration();
   IConfig resources = config.getConfig("resources");
   if (resources != null) {
     for (IConfig resource : resources.getConfigBundle("resource")) {
       AquaRes res = getAqua().createAquaRes(resource.getProperty("type"));
       res.setConfig(resource);
       resApp.register(res);
       this.resources.put(resource.getProperty("name"), res);
     }
   }
 }