public void afterDeploymentValidation ( @ Observes @ Priority ( 1 ) AfterDeploymentValidation event , BeanManager beanManager ) { BeanManagerImpl manager = BeanManagerProxy . unwrap ( beanManager ) ; probe . init ( manager ) ; if ( isJMXSupportEnabled ( manager ) ) { try { MBeanServer mbs = ManagementFactory . getPlatformMBeanServer ( ) ; mbs . registerMBean ( new ProbeDynamicMBean ( jsonDataProvider , JsonDataProvider . class ) , constructProbeJsonDataMBeanName ( manager , probe ) ) ; } catch ( MalformedObjectNameException | InstanceAlreadyExistsException | MBeanRegistrationException | NotCompliantMBeanException e ) { event . addDeploymentProblem ( ProbeLogger . LOG . unableToRegisterMBean ( JsonDataProvider . class , manager . getContextId ( ) , e ) ) ; } } addContainerLifecycleEvent ( event , null , beanManager ) ; exportDataIfNeeded ( manager ) ; }
any possible bean invocations from other ADV observers