Esempio n. 1
0
 public static List<MetaModule> createAll() {
   List<MetaModule> result = new ArrayList<MetaModule>();
   for (Object oapp : MetaApplications.getMetaApplications()) {
     MetaApplication app = (MetaApplication) oapp;
     createDefaultMetaModules(app);
     createAdditionalMetaModules(app);
     result.addAll(app.getMetaModules());
   }
   return result;
 }
Esempio n. 2
0
 private static void createDefaultMetaModules(MetaApplication app) {
   for (String className : AnnotatedClassParser.getManagedClassNames()) {
     if (className.endsWith(".GalleryImage") || className.endsWith(".AttachedFile")) continue;
     if (isEmbeddable(className)) continue;
     app.getMetaModule(Strings.lastToken(className, "."));
   }
 }
Esempio n. 3
0
 private static void createAdditionalMetaModules(MetaApplication app) {
   for (String moduleName : AdditionalModules.get()) {
     app.getMetaModule(moduleName);
   }
 }