示例#1
0
        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);
        }
示例#2
0
 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;
 }