this.descriptor = descriptor;
this.application = application;
this.classLoader = moduleLifeCycle.getClassLoader();
// For application start (perhaps we could remove that)
BeanLifeCycle lf = injectionContext.get(Application.class);
try {
lf.get();
}
catch (InvocationTargetException e) {
throw new UnsupportedOperationException("handle me gracefully", e);
}
finally {
lf.close();
}
}