Start 6.0 version
* Upgrade to Java 17, SF-6.0, Gradle 7.2 * Upgrade to Jakarta dependencies and respective namespaces * Fix some tests for Java 17 compatibility * Fix wrong Javadocs * Add some missed Javadocs * Fix more `jakarta` namespace * Fix WS & XML modules to use Jakarta EE * `--add-opens` in some modules for their reflection-based tests * Disable Kafka tests which does not work on Windows; see Apache Kafka `3.0.1` * Upgrade to JUnit `5.8.1` * Migrate JMS tests to Artemis * Remove RMI module as it was deprecated before * Fix `pr-build-workflow.yml` for Java 17 * Fix JavaDocs warnings using `Xdoclint:syntax` per module, not in the top-level `api` task * Move docs for version `6.0`
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -190,6 +190,10 @@ public class NotificationListeningMessageProducer extends MessageProducerSupport
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a collection of {@link ObjectName} ofr provided {@link #mBeanObjectNames}.
|
||||
* @return the collection of {@link ObjectName} ofr provided {@link #mBeanObjectNames}.
|
||||
*/
|
||||
protected Collection<ObjectName> retrieveMBeanNames() {
|
||||
List<ObjectName> objectNames = new ArrayList<>();
|
||||
for (ObjectName pattern : this.mBeanObjectNames) {
|
||||
|
||||
@@ -61,12 +61,19 @@ public class NotificationPublishingMessageHandler extends AbstractMessageHandler
|
||||
|
||||
private OutboundMessageMapper<Notification> notificationMapper;
|
||||
|
||||
|
||||
/**
|
||||
* Construct an instance based on the provided object name.
|
||||
* @param objectName the {@link ObjectName} to use for notification.
|
||||
*/
|
||||
public NotificationPublishingMessageHandler(ObjectName objectName) {
|
||||
Assert.notNull(objectName, "JMX ObjectName is required");
|
||||
this.objectName = objectName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct an instance based on the provided object name.
|
||||
* @param objectName the object name to use for notification.
|
||||
*/
|
||||
public NotificationPublishingMessageHandler(String objectName) {
|
||||
Assert.notNull(objectName, "JMX ObjectName is required");
|
||||
try {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2020 the original author or authors.
|
||||
* Copyright 2014-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -34,7 +34,6 @@ import org.springframework.context.EnvironmentAware;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.ImportAware;
|
||||
import org.springframework.context.annotation.MBeanExportConfiguration.SpecificPlatform;
|
||||
import org.springframework.context.annotation.Role;
|
||||
import org.springframework.context.expression.StandardBeanExpressionResolver;
|
||||
import org.springframework.core.annotation.AnnotationAttributes;
|
||||
@@ -131,12 +130,6 @@ public class IntegrationMBeanExportConfiguration implements ImportAware, Environ
|
||||
}
|
||||
exporter.setServer(bean);
|
||||
}
|
||||
else {
|
||||
SpecificPlatform specificPlatform = SpecificPlatform.get();
|
||||
if (specificPlatform != null) {
|
||||
exporter.setServer(specificPlatform.getMBeanServer());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void setupComponentNamePatterns(IntegrationMBeanExporter exporter) {
|
||||
|
||||
Reference in New Issue
Block a user