コード例 #1
0
ファイル: EventImpl.java プロジェクト: alexbalitsky/weld-core
 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());
 }
コード例 #2
0
 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);
     }
   }
 }