public ClientGui(final Client client) throws IOException, JMException {
this.client = Objects.requireNonNull(client, "client");
createWidgets();
populateWidgets();
// register for Notifications if LoggerContext MBean was added/removed
final ObjectName addRemoveNotifs = MBeanServerDelegate.DELEGATE_NAME;
final NotificationFilterSupport filter = new NotificationFilterSupport();
filter.enableType(Server.DOMAIN); // only interested in Log4J2 MBeans
client.getConnection().addNotificationListener(addRemoveNotifs, this, null, null);
}
ClientGui.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:logging-log4j2
作者:
评论列表
文章目录