/** * Fires a {@link ProcessAnnotatedType}. Instead of using the default event dispatching mechanism, this method directly notifies * extension observers resolved by FastProcessAnnotatedTypeResolver. */ @SuppressWarnings({ "rawtypes", "unchecked" }) private void fireProcessAnnotatedType(ProcessAnnotatedTypeImpl<?> event, Set<ExtensionObserverMethodImpl<?, ?>> observers) { List<Throwable> errors = new LinkedList<Throwable>(); for (ExtensionObserverMethodImpl observer : observers) { // FastProcessAnnotatedTypeResolver does not consider special scope inheritance rules (see CDI - section 4.1) if (checkScopeInheritanceRules(event.getOriginalAnnotatedType(), observer)) { try { observer.notify(event); } catch (Throwable e) { errors.add(e); } } } if (!errors.isEmpty()) { throw new DefinitionException(errors); } }
/** * Fires a {@link ProcessAnnotatedType}. Instead of using the default event dispatching mechanism, this method directly notifies * extension observers resolved by FastProcessAnnotatedTypeResolver. */ @SuppressWarnings({ "rawtypes", "unchecked" }) private void fireProcessAnnotatedType(ProcessAnnotatedTypeImpl<?> event, Set<ContainerLifecycleEventObserverMethod<?>> observers, BeanManagerImpl beanManager) { List<Throwable> errors = new LinkedList<Throwable>(); for (ContainerLifecycleEventObserverMethod observer : observers) { // FastProcessAnnotatedTypeResolver does not consider special scope inheritance rules (see CDI - section 4.1) if (checkScopeInheritanceRules(event.getOriginalAnnotatedType(), observer, beanManager)) { try { observer.notify(event); } catch (Throwable e) { errors.add(e); } } } if (!errors.isEmpty()) { throw new DefinitionException(errors); } }
/** * Fires a {@link ProcessAnnotatedType}. Instead of using the default event dispatching mechanism, this method directly notifies * extension observers resolved by FastProcessAnnotatedTypeResolver. */ @SuppressWarnings({ "rawtypes", "unchecked" }) private void fireProcessAnnotatedType(ProcessAnnotatedTypeImpl<?> event, Set<ContainerLifecycleEventObserverMethod<?>> observers, BeanManagerImpl beanManager) { List<Throwable> errors = new LinkedList<Throwable>(); for (ContainerLifecycleEventObserverMethod observer : observers) { // FastProcessAnnotatedTypeResolver does not consider special scope inheritance rules (see CDI - section 4.1) if (checkScopeInheritanceRules(event.getOriginalAnnotatedType(), observer, beanManager)) { try { observer.notify(event); } catch (Throwable e) { errors.add(e); } } } if (!errors.isEmpty()) { throw new DefinitionException(errors); } }
/** * Fires a {@link ProcessAnnotatedType}. Instead of using the default event dispatching mechanism, this method directly notifies * extension observers resolved by FastProcessAnnotatedTypeResolver. */ @SuppressWarnings({ "rawtypes", "unchecked" }) private void fireProcessAnnotatedType(ProcessAnnotatedTypeImpl<?> event, Set<ContainerLifecycleEventObserverMethod<?>> observers, BeanManagerImpl beanManager) { List<Throwable> errors = new LinkedList<Throwable>(); for (ContainerLifecycleEventObserverMethod observer : observers) { // FastProcessAnnotatedTypeResolver does not consider special scope inheritance rules (see CDI - section 4.1) if (checkScopeInheritanceRules(event.getOriginalAnnotatedType(), observer, beanManager)) { try { observer.notify(event); } catch (Throwable e) { errors.add(e); } } } if (!errors.isEmpty()) { throw new DefinitionException(errors); } }
/** * Fires a {@link ProcessAnnotatedType}. Instead of using the default event dispatching mechanism, this method directly notifies * extension observers resolved by FastProcessAnnotatedTypeResolver. */ @SuppressWarnings({ "rawtypes", "unchecked" }) private void fireProcessAnnotatedType(ProcessAnnotatedTypeImpl<?> event, Set<ContainerLifecycleEventObserverMethod<?>> observers, BeanManagerImpl beanManager) { List<Throwable> errors = new LinkedList<Throwable>(); for (ContainerLifecycleEventObserverMethod observer : observers) { // FastProcessAnnotatedTypeResolver does not consider special scope inheritance rules (see CDI - section 4.1) if (checkScopeInheritanceRules(event.getOriginalAnnotatedType(), observer, beanManager)) { try { observer.notify(event); } catch (Throwable e) { errors.add(e); } } } if (!errors.isEmpty()) { throw new DefinitionException(errors); } }
/** * Fires a {@link ProcessAnnotatedType}. Instead of using the default event dispatching mechanism, this method directly notifies * extension observers resolved by FastProcessAnnotatedTypeResolver. */ @SuppressWarnings({ "rawtypes", "unchecked" }) private void fireProcessAnnotatedType(ProcessAnnotatedTypeImpl<?> event, Set<ContainerLifecycleEventObserverMethod<?>> observers, BeanManagerImpl beanManager) { List<Throwable> errors = new LinkedList<Throwable>(); for (ContainerLifecycleEventObserverMethod observer : observers) { // FastProcessAnnotatedTypeResolver does not consider special scope inheritance rules (see CDI - section 4.1) if (checkScopeInheritanceRules(event.getOriginalAnnotatedType(), observer, beanManager)) { try { observer.notify(event); } catch (Throwable e) { errors.add(e); } } } if (!errors.isEmpty()) { throw new DefinitionException(errors); } }