Class<?>[] classes = provider.getAnnotatedClasses();
for (Class<?> clazz : classes) {
if (isModelEntity(clazz)) {
annotatedClasses.add(clazz);
} else {
throw new EvolizerRuntimeException(clazz.getSimpleName()
+ " does not implement IEvolizerModelEntity.");
}
}
sfLogger.debug("Added model " + configElement.getAttribute("name"));
} catch (CoreException exception) {
String message =
"Could not create executable extension from " + configElement.getContributor() + ". "
+ exception.getMessage();
sfLogger.error(message, exception);
throw new EvolizerRuntimeException("Error while initializing log properties.", exception);
}
}
}
return annotatedClasses;