private ProcessSessionBeanImpl(BeanManagerImpl beanManager, SessionBean<Object> bean) { super(beanManager, ProcessSessionBean.class, new Type[]{bean.getAnnotated().getBaseType()}, bean); }
private ProcessSessionBeanImpl(BeanManagerImpl beanManager, SessionBean<Object> bean) { super(beanManager, ProcessSessionBean.class, new Type[]{bean.getAnnotated().getBaseType()}, bean); }
private ProcessSessionBeanImpl(BeanManagerImpl beanManager, SessionBean<Object> bean) { super(beanManager, ProcessSessionBean.class, new Type[]{bean.getAnnotated().getBaseType()}, bean); }
private ProcessSessionBeanImpl(BeanManagerImpl beanManager, SessionBean<Object> bean) { super(beanManager, ProcessSessionBean.class, new Type[]{bean.getAnnotated().getBaseType()}, bean); }
private ProcessSessionBeanImpl(BeanManagerImpl beanManager, SessionBean<Object> bean) { super(beanManager, ProcessSessionBean.class, new Type[]{bean.getAnnotated().getBaseType()}, bean); }
private ProcessSessionBeanImpl(BeanManagerImpl beanManager, SessionBean<Object> bean) { super(beanManager, ProcessSessionBean.class, new Type[]{bean.getAnnotated().getBaseType()}, bean); }
private boolean hasContainerManagedTransactions(SessionBean<?> bean) { TransactionManagement transactionManagementAnnotation = bean.getAnnotated().getAnnotation(TransactionManagement.class); if (transactionManagementAnnotation == null) { return true; } return transactionManagementAnnotation.value() == TransactionManagementType.CONTAINER; } }
public boolean isSessionBeanWithContainerManagedTransactions(Bean<?> bean) { if (bean instanceof SessionBean<?>) { SessionBean<?> sessionBean = (SessionBean<?>) bean; Annotation transactionManagementAnnotation = sessionBean.getAnnotated().getAnnotation(TRANSACTION_MANAGEMENT); if (transactionManagementAnnotation == null || transactionManagementAnnotation instanceof DummyAnnotation) { return true; } Object value; try { Method method = transactionManagementAnnotation.annotationType().getMethod("value"); value = method.invoke(transactionManagementAnnotation); } catch (NoSuchMethodException e) { return true; } catch (Exception e) { throw new WeldException(e); } return CONTAINER_MANAGED_TRANSACTION_MANAGEMENT_ENUM_VALUE.equals(value); } return false; }
public AnnotatedType<Object> getAnnotatedBeanClass() { checkWithinObserverNotification(); return getBean().getAnnotated(); }
public AnnotatedType<Object> getAnnotatedBeanClass() { checkWithinObserverNotification(); return getBean().getAnnotated(); }
@Override public void inject(T instance, CreationalContext<T> ctx) { // explicitly use bean's AnnotatedType, not InjectionPoint's as this.getAnnotated() // may represent the annotated type for the EJB-container subclass (see SubclassedComponentDescriptor) getInjector().inject(instance, ctx, beanManager, bean.getAnnotated(), this); }
@Override public void inject(T instance, CreationalContext<T> ctx) { // explicitly use bean's AnnotatedType, not InjectionPoint's as this.getAnnotated() // may represent the annotated type for the EJB-container subclass (see SubclassedComponentDescriptor) getInjector().inject(instance, ctx, beanManager, bean.getAnnotated(), this); }
public AnnotatedType<Object> getAnnotatedBeanClass() { checkWithinObserverNotification(); return getBean().getAnnotated(); }
public AnnotatedType<Object> getAnnotatedBeanClass() { checkWithinObserverNotification(); return getBean().getAnnotated(); }
public AnnotatedType<Object> getAnnotatedBeanClass() { checkWithinObserverNotification(); return getBean().getAnnotated(); }
public AnnotatedType<Object> getAnnotatedBeanClass() { checkWithinObserverNotification(); return getBean().getAnnotated(); }
protected void registerInterceptors() { InterceptionModel model = beanManager.getInterceptorModelRegistry().get(getAnnotated()); if (model != null) { getBeanManager().getServices().get(EjbServices.class).registerInterceptors(getEjbDescriptor().delegate(), new InterceptorBindingsAdapter(model)); } } }