public ObjectName PreRegister(IMBeanServer server, ObjectName name) { ObjectName newName = name; if (_registration != null) { newName = _registration.PreRegister(server, name); } _objectName = newName; if (_notifEmitter == null) { _notificationSupport = new NotificationEmitterSupport(); _notificationSupport.Initialize(newName.ToString(), _info.Notifications); _notifEmitter = _notificationSupport; AttachNotifications(); } return(newName); }
public ObjectName PreRegister(IMBeanServer server, ObjectName name) { ObjectName newName = name; if (_registration != null) { newName = _registration.PreRegister(server, name); } _objectName = newName; if (_notifEmitter == null) { _notificationSupport = new NotificationEmitterSupport(); _notificationSupport.Initialize(newName.ToString(), _info.Notifications); _notifEmitter = _notificationSupport; AttachNotifications(); } return newName; }