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; }
internal static MBeanInternalInfo GetCached(Type intfType) { lock (_synchRoot) { if (!_cache.ContainsKey(intfType)) { MBeanInternalInfo info = new MBeanInternalInfo(intfType); _cache[intfType] = info; } } return(_cache[intfType]); }
internal static MBeanInternalInfo GetCached(Type intfType) { lock (_synchRoot) { if (!_cache.ContainsKey(intfType)) { MBeanInternalInfo info = new MBeanInternalInfo(intfType); _cache[intfType] = info; } } return _cache[intfType]; }