コード例 #1
0
 public void vetoBean(AbstractBean<?, ?> bean) {
   beans.remove(bean);
   if (bean instanceof AbstractClassBean<?>) {
     classBeanMap.get(bean.getBeanClass()).remove(bean);
     if (bean instanceof InterceptorImpl<?>) {
       interceptors.remove(bean);
     }
     if (bean instanceof DecoratorImpl<?>) {
       decorators.remove(bean);
     }
   }
   if (bean instanceof ProducerMethod<?, ?>) {
     ProducerMethod<?, ?> producerMethod = cast(bean);
     producerMethodBeanMap.get(WeldMethodKey.of(producerMethod)).remove(producerMethod);
   }
   if (bean instanceof ProducerField<?, ?>) {
     producerFields.remove(bean);
   }
 }
コード例 #2
0
 public void addNewBeansFromInjectionPoints(AbstractBean<?, ?> bean) {
   addNewBeansFromInjectionPoints(bean.getInjectionPoints());
 }