/** * Create a new instance of the {@link ModelMBeanNotificationPublisher} class * that will publish all {@link javax.management.Notification Notifications} * to the supplied {@link ModelMBean}. * @param modelMBean the target {@link ModelMBean}; must not be {@code null} * @param objectName the {@link ObjectName} of the source {@link ModelMBean} * @param managedResource the managed resource exposed by the supplied {@link ModelMBean} * @throws IllegalArgumentException if any of the parameters is {@code null} */ public ModelMBeanNotificationPublisher( ModelMBeanNotificationBroadcaster modelMBean, ObjectName objectName, Object managedResource) { Assert.notNull(modelMBean, "'modelMBean' must not be null"); Assert.notNull(objectName, "'objectName' must not be null"); Assert.notNull(managedResource, "'managedResource' must not be null"); this.modelMBean = modelMBean; this.objectName = objectName; this.managedResource = managedResource; }
public NotificationSenderAdapter(ModelMBeanNotificationBroadcaster broadcaster) { this.broadcaster = broadcaster; }