@ -916,7 +916,9 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -916,7 +916,9 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
publishEvent(newContextRefreshedEvent(this));
// Participate in LiveBeansView MBean, if active.
LiveBeansView.registerApplicationContext(this);
if(!IN_NATIVE_IMAGE){
LiveBeansView.registerApplicationContext(this);
}
}
/**
@ -1024,7 +1026,9 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -1024,7 +1026,9 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader