Example #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;
 }
Example #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, "."));
   }
 }
Example #3
0
 private static void createAdditionalMetaModules(MetaApplication app) {
   for (String moduleName : AdditionalModules.get()) {
     app.getMetaModule(moduleName);
   }
 }