类javax.management.modelmbean.ModelMBeanNotificationBroadcaster源码实例Demo

下面列出了怎么用javax.management.modelmbean.ModelMBeanNotificationBroadcaster的API类实例代码及写法,或者点击链接到github查看源代码。

/**
 * 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;
}
 
/**
 * 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;
}
 
源代码3 项目: lams   文件: ModelMBeanNotificationPublisher.java
/**
 * 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;
}
 
/**
 * 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;
}
 
public NotificationSenderAdapter(ModelMBeanNotificationBroadcaster broadcaster) {
    this.broadcaster = broadcaster;
}
 
 类所在包
 类方法
 同包方法