if (!(notifIn instanceof MBeanServerNotification))
{
return;
}
final MBeanServerNotification notif = (MBeanServerNotification) notifIn;
final ObjectName objectName = notif.getMBeanName();
if ( ! mJ2EEServer.objectName().getDomain().equals(objectName.getDomain()))
{
return;
}
final String type = Util.getTypeProp(objectName);
if (notif.getType().equals(MBeanServerNotification.REGISTRATION_NOTIFICATION))
{
if ( type.equals( mResourceRefType ) )
{
ImplUtil.getLogger().fine("New ResourceRef MBEAN registered: " + objectName);
final ResourceRef ref = mProxyFactory.getProxy(objectName, ResourceRef.class);
processResourceRef(ref);
}
else if ( type.equals( mApplicationRefType ) )
{
ImplUtil.getLogger().fine( "NEW ApplicationRef MBEAN registered: " + objectName);
final ApplicationRef ref = mProxyFactory.getProxy(objectName, ApplicationRef.class);
processApplicationRef(ref);
}
}
else if (notif.getType().equals(MBeanServerNotification.UNREGISTRATION_NOTIFICATION))
{
// determine if it's a config for which a JSR 77 MBean is registered
synchronized (mConfigRefTo77)
{
final ObjectName mbean77 = mConfigRefTo77.remove(objectName);