Class<?> mainModule = getMainModule();
/*
* 获取 Loading
*/
LoadingBy by = mainModule.getAnnotation(LoadingBy.class);
if (null == by) {
if (log.isDebugEnabled())
log.debug("Loading by " + NutLoading.class);
return new NutLoading();
}
try {
if (log.isDebugEnabled())
log.debug("Loading by " + by.value());
return Mirror.me(by.value()).born();
}
catch (Exception e) {
throw Lang.wrapThrow(e);
}
}