@Override
public void start() throws Exception {
if (Vertx.currentContext().config().getBoolean("loaded_globally")) {
if (Portlet.class.getClassLoader() == MyVerticle.class.getClassLoader()) {
throw new Exception("System dependency not loaded by the correct loader");
}
} else {
if (Portlet.class.getClassLoader() != MyVerticle.class.getClassLoader()) {
throw new Exception("System dependency not loaded by the correct loader");
}
}
}
MyVerticle.java 文件源码
java
阅读 17
收藏 0
点赞 0
评论 0
项目:vertx-maven-service-factory
作者:
评论列表
文章目录