/** * Check whether this class has any method which intercepts the whole bean itself. * @return SelfInterceptorBean or <code>null</code> if this bean doesn't intercept itself */ private <T> SelfInterceptorBean<T> resolveSelfInterceptorBean(AnnotatedType<T> annotatedType) { BeanAttributesImpl<T> beanAttributes = BeanAttributesBuilder.forContext(webBeansContext).newBeanAttibutes(annotatedType).build(); if (beanAttributes == null) { // might happen if a proxying rule eefines that this is not a valid bean type. return null; } SelfInterceptorBeanBuilder<T> sibb = new SelfInterceptorBeanBuilder<>(webBeansContext, annotatedType, beanAttributes); sibb.defineSelfInterceptorRules(); if (!sibb.isInterceptorEnabled()) { return null; } return sibb.getBean(); }