return getError("Bean deployment archive id (bdaId) must be specified: " + filters); return getError("Unable to find the bean deployment archive for: " + filterValues.get(BDA_ID)); return getError("Invalid required type: parsing error or the type is not accessible from the specified bean archive!"); return getError("Invalid qualifiers: parsing error or one of the qualifier types is not accessible from the specified bean archive!");
public void beforeBeanDiscovery(@Observes BeforeBeanDiscovery event, BeanManager beanManager) { ProbeLogger.LOG.developmentModeEnabled(); BeanManagerImpl manager = BeanManagerProxy.unwrap(beanManager); manager.addValidationFailureCallback((exception, environment) -> { // Note that eventual problems are ignored during callback invocation probe.init(manager); Reports.generateValidationReport(probe, exception, environment, manager); }); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(Monitored.class, beanManager), Monitored.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(MonitoredComponent.class, beanManager), MonitoredComponent.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(InvocationMonitor.class, beanManager), InvocationMonitor.class.getName()); WeldConfiguration configuration = manager.getServices().get(WeldConfiguration.class); String exclude = configuration.getStringProperty(ConfigurationKey.PROBE_INVOCATION_MONITOR_EXCLUDE_TYPE); this.invocationMonitorExcludePattern = exclude.isEmpty() ? null : Pattern.compile(exclude); this.jsonDataProvider = new DefaultJsonDataProvider(probe, manager); this.eventMonitorContainerLifecycleEvents = configuration.getBooleanProperty(ConfigurationKey.PROBE_EVENT_MONITOR_CONTAINER_LIFECYCLE_EVENTS); addContainerLifecycleEvent(event, null, beanManager); }
public void beforeBeanDiscovery(@Observes BeforeBeanDiscovery event, BeanManager beanManager) { ProbeLogger.LOG.developmentModeEnabled(); BeanManagerImpl manager = BeanManagerProxy.unwrap(beanManager); manager.addValidationFailureCallback((exception, environment) -> { // Note that eventual problems are ignored during callback invocation probe.init(manager); Reports.generateValidationReport(probe, exception, environment, manager); }); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(Monitored.class, beanManager), Monitored.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(MonitoredComponent.class, beanManager), MonitoredComponent.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(InvocationMonitor.class, beanManager), InvocationMonitor.class.getName()); WeldConfiguration configuration = manager.getServices().get(WeldConfiguration.class); String exclude = configuration.getStringProperty(ConfigurationKey.PROBE_INVOCATION_MONITOR_EXCLUDE_TYPE); this.invocationMonitorExcludePattern = exclude.isEmpty() ? null : Pattern.compile(exclude); this.jsonDataProvider = new DefaultJsonDataProvider(probe, manager); this.eventMonitorContainerLifecycleEvents = configuration.getBooleanProperty(ConfigurationKey.PROBE_EVENT_MONITOR_CONTAINER_LIFECYCLE_EVENTS); addContainerLifecycleEvent(event, null, beanManager); }
public void beforeBeanDiscovery(@Observes BeforeBeanDiscovery event, BeanManager beanManager) { ProbeLogger.LOG.developmentModeEnabled(); BeanManagerImpl manager = BeanManagerProxy.unwrap(beanManager); manager.addValidationFailureCallback((exception, environment) -> { // Note that eventual problems are ignored during callback invocation probe.init(manager); Reports.generateValidationReport(probe, exception, environment, manager); }); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(Monitored.class, beanManager), Monitored.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(MonitoredComponent.class, beanManager), MonitoredComponent.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(InvocationMonitor.class, beanManager), InvocationMonitor.class.getName()); WeldConfiguration configuration = manager.getServices().get(WeldConfiguration.class); String exclude = configuration.getStringProperty(ConfigurationKey.PROBE_INVOCATION_MONITOR_EXCLUDE_TYPE); this.invocationMonitorExcludePattern = exclude.isEmpty() ? null : Pattern.compile(exclude); this.jsonDataProvider = new DefaultJsonDataProvider(probe, manager); this.eventMonitorContainerLifecycleEvents = configuration.getBooleanProperty(ConfigurationKey.PROBE_EVENT_MONITOR_CONTAINER_LIFECYCLE_EVENTS); addContainerLifecycleEvent(event, null, beanManager); }
return getError("Bean deployment archive id (bdaId) must be specified: " + filters); return getError("Unable to find the bean deployment archive for: " + filterValues.get(BDA_ID)); return getError("Invalid required type: parsing error or the type is not accessible from the specified bean archive!"); return getError("Invalid qualifiers: parsing error or one of the qualifier types is not accessible from the specified bean archive!");
public void beforeBeanDiscovery(@Observes BeforeBeanDiscovery event, BeanManager beanManager) { ProbeLogger.LOG.developmentModeEnabled(); BeanManagerImpl manager = BeanManagerProxy.unwrap(beanManager); manager.addValidationFailureCallback((exception, environment) -> { // Note that eventual problems are ignored during callback invocation probe.init(manager); Reports.generateValidationReport(probe, exception, environment, manager); }); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(Monitored.class, beanManager), Monitored.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(MonitoredComponent.class, beanManager), MonitoredComponent.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(InvocationMonitor.class, beanManager), InvocationMonitor.class.getName()); WeldConfiguration configuration = manager.getServices().get(WeldConfiguration.class); String exclude = configuration.getStringProperty(ConfigurationKey.PROBE_INVOCATION_MONITOR_EXCLUDE_TYPE); this.invocationMonitorExcludePattern = exclude.isEmpty() ? null : Pattern.compile(exclude); this.jsonDataProvider = new DefaultJsonDataProvider(probe, manager); this.eventMonitorContainerLifecycleEvents = configuration.getBooleanProperty(ConfigurationKey.PROBE_EVENT_MONITOR_CONTAINER_LIFECYCLE_EVENTS); addContainerLifecycleEvent(event, null, beanManager); }
return getError("Bean deployment archive id (bdaId) must be specified: " + filters); return getError("Unable to find the bean deployment archive for: " + filterValues.get(BDA_ID)); return getError("Invalid required type: parsing error or the type is not accessible from the specified bean archive!"); return getError("Invalid qualifiers: parsing error or one of the qualifier types is not accessible from the specified bean archive!");
public void beforeBeanDiscovery(@Observes BeforeBeanDiscovery event, BeanManager beanManager) { ProbeLogger.LOG.developmentModeEnabled(); final BeanManagerImpl manager = BeanManagerProxy.unwrap(beanManager); manager.addValidationFailureCallback(new BiConsumer<Exception, Environment>() { @Override public void accept(Exception exception, Environment environment) { // Note that eventual problems are ignored during callback invocation probe.init(manager); Reports.generateValidationReport(probe, exception, environment, manager); } }); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(Monitored.class, beanManager), Monitored.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(MonitoredComponent.class, beanManager), MonitoredComponent.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(InvocationMonitor.class, beanManager), InvocationMonitor.class.getName()); WeldConfiguration configuration = manager.getServices().get(WeldConfiguration.class); String exclude = configuration.getStringProperty(ConfigurationKey.PROBE_INVOCATION_MONITOR_EXCLUDE_TYPE); this.invocationMonitorExcludePattern = exclude.isEmpty() ? null : Pattern.compile(exclude); this.jsonDataProvider = new DefaultJsonDataProvider(probe, manager); this.eventMonitorContainerLifecycleEvents = configuration.getBooleanProperty(ConfigurationKey.PROBE_EVENT_MONITOR_CONTAINER_LIFECYCLE_EVENTS); addContainerLifecycleEvent(event, null, beanManager); }
return getError("Bean deployment archive id (bdaId) must be specified: " + filters); return getError("Unable to find the bean deployment archive for: " + filterValues.get(BDA_ID)); return getError("Invalid required type: parsing error or the type is not accessible from the specified bean archive!"); return getError("Invalid qualifiers: parsing error or one of the qualifier types is not accessible from the specified bean archive!");
public void beforeBeanDiscovery(@Observes BeforeBeanDiscovery event, BeanManager beanManager) { ProbeLogger.LOG.developmentModeEnabled(); BeanManagerImpl manager = BeanManagerProxy.unwrap(beanManager); manager.addValidationFailureCallback((exception, environment) -> { // Note that eventual problems are ignored during callback invocation probe.init(manager); Reports.generateValidationReport(probe, exception, environment, manager); }); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(Monitored.class, beanManager), Monitored.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(MonitoredComponent.class, beanManager), MonitoredComponent.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(InvocationMonitor.class, beanManager), InvocationMonitor.class.getName()); WeldConfiguration configuration = manager.getServices().get(WeldConfiguration.class); String exclude = configuration.getStringProperty(ConfigurationKey.PROBE_INVOCATION_MONITOR_EXCLUDE_TYPE); this.invocationMonitorExcludePattern = exclude.isEmpty() ? null : Pattern.compile(exclude); this.jsonDataProvider = new DefaultJsonDataProvider(probe, manager); this.eventMonitorContainerLifecycleEvents = configuration.getBooleanProperty(ConfigurationKey.PROBE_EVENT_MONITOR_CONTAINER_LIFECYCLE_EVENTS); addContainerLifecycleEvent(event, null, beanManager); }
return getError("Bean deployment archive id (bdaId) must be specified: " + filters); return getError("Unable to find the bean deployment archive for: " + filterValues.get(BDA_ID)); return getError("Invalid required type: parsing error or the type is not accessible from the specified bean archive!"); return getError("Invalid qualifiers: parsing error or one of the qualifier types is not accessible from the specified bean archive!");
public void beforeBeanDiscovery(@Observes BeforeBeanDiscovery event, BeanManager beanManager) { ProbeLogger.LOG.developmentModeEnabled(); BeanManagerImpl manager = BeanManagerProxy.unwrap(beanManager); manager.addValidationFailureCallback((exception, environment) -> { // Note that eventual problems are ignored during callback invocation probe.init(manager); Reports.generateValidationReport(probe, exception, environment, manager); }); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(Monitored.class, beanManager), Monitored.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(MonitoredComponent.class, beanManager), MonitoredComponent.class.getName()); event.addAnnotatedType(VetoedSuppressedAnnotatedType.from(InvocationMonitor.class, beanManager), InvocationMonitor.class.getName()); WeldConfiguration configuration = manager.getServices().get(WeldConfiguration.class); String exclude = configuration.getStringProperty(ConfigurationKey.PROBE_INVOCATION_MONITOR_EXCLUDE_TYPE); this.invocationMonitorExcludePattern = exclude.isEmpty() ? null : Pattern.compile(exclude); this.jsonDataProvider = new DefaultJsonDataProvider(probe, manager); this.eventMonitorContainerLifecycleEvents = configuration.getBooleanProperty(ConfigurationKey.PROBE_EVENT_MONITOR_CONTAINER_LIFECYCLE_EVENTS); addContainerLifecycleEvent(event, null, beanManager); }
return getError("Bean deployment archive id (bdaId) must be specified: " + filters); return getError("Unable to find the bean deployment archive for: " + filterValues.get(BDA_ID)); return getError("Invalid required type: parsing error or the type is not accessible from the specified bean archive!"); return getError("Invalid qualifiers: parsing error or one of the qualifier types is not accessible from the specified bean archive!");
return getError("Bean deployment archive id (bdaId) must be specified: " + filters); return getError("Unable to find the bean deployment archive for: " + filterValues.get(BDA_ID)); return getError("Invalid required type: parsing error or the type is not accessible from the specified bean archive!"); return getError("Invalid qualifiers: parsing error or one of the qualifier types is not accessible from the specified bean archive!");