/** * Defines enterprise bean via plugin. * @param <T> bean class type * @param clazz bean class */ protected <T> void defineEnterpriseWebBean(Class<T> clazz, AnnotatedType<T> annotatedType, BeanAttributes<T> attributes) { InjectionTargetBean<T> bean = (InjectionTargetBean<T>) EJBWebBeansConfigurator.defineEjbBean( clazz, annotatedType, attributes, webBeansContext); webBeansContext.getWebBeansUtil().setInjectionTargetBeanEnableFlag(bean); }