Object src = ch.getSource();
if(src instanceof ObjectName)
{
ObjectName obj = (ObjectName) src;
// indicate the state changed
fireStateChange(new MBeanLocator(server, obj), ((Integer) ch.getOldValue()).intValue(), ((Integer) ch.getNewValue()).intValue());
return;
}
else if(src instanceof MBeanLocator)
{
fireNotification((MBeanLocator) src, notification, o);
return;
}
}
}
if(wantNotifications && hasActions())
{
// fire notification to listener
MBeanServerLocator server = (MBeanServerLocator) o;
if(server != null)
{
Object src = notification.getSource();
if(src instanceof ObjectName)
{
ObjectName obj = (ObjectName) src;
MBeanLocator locator = new MBeanLocator(server, obj);
fireNotification(locator, notification, o);
return;
}
else if(src instanceof MBeanLocator)
{