private <U extends T> Event<U> selectEvent(Type subtype, Annotation[] newQualifiers) { Observers.checkEventObjectType(subtype); return new EventImpl<U>( subtype, Beans.mergeInQualifiers(getQualifiers(), newQualifiers), getInjectionPoint(), getBeanManager()); }
private void processAdditionalObserver(ObserverMethod<?> observer) { validateObserverMethod(observer, getBeanManager(), null); BeanManagerImpl manager = getOrCreateBeanDeployment(observer.getBeanClass()).getBeanManager(); if (Observers.isObserverMethodEnabled(observer, manager)) { ObserverMethod<?> processedObserver = containerLifecycleEvents.fireProcessObserverMethod(manager, observer); if (processedObserver != null) { manager.addObserver(processedObserver); } } }