예제 #1
0
 public StandardMBean(object impl, Type intfType)
 {
     _internalInfo = MBeanInternalInfo.GetCached(intfType);
      _info = _internalInfo.MBeanInfo;//CreateMBeanInfo(impl, intfType);
      _impl = impl;
      _registration = impl as IMBeanRegistration;
      _notifListener = impl as INotificationListener;
      _notifEmitter = impl as INotificationEmitter;
 }
예제 #2
0
 internal static MBeanInternalInfo GetCached(Type intfType)
 {
     lock (_synchRoot)
     {
         if (!_cache.ContainsKey(intfType))
         {
             MBeanInternalInfo info = new MBeanInternalInfo(intfType);
             _cache[intfType] = info;
         }
     }
     return(_cache[intfType]);
 }
예제 #3
0
 internal static MBeanInternalInfo GetCached(Type intfType)
 {
     lock (_synchRoot)
      {
     if (!_cache.ContainsKey(intfType))
     {
        MBeanInternalInfo info = new MBeanInternalInfo(intfType);
        _cache[intfType] = info;
     }
      }
      return _cache[intfType];
 }