public void validateProducer(Producer<?> producer, BeanManagerImpl beanManager) { for (InjectionPoint injectionPoint : producer.getInjectionPoints()) { validateInjectionPoint(injectionPoint, beanManager); } }
public void validateProducer(Producer<?> producer, BeanManagerImpl beanManager) { for (InjectionPoint injectionPoint : producer.getInjectionPoints()) { validateInjectionPoint(injectionPoint, beanManager); } }
public void validateProducer(Producer<?> producer, BeanManagerImpl beanManager) { for (InjectionPoint injectionPoint : producer.getInjectionPoints()) { validateInjectionPoint(injectionPoint, beanManager); } }
public void validateProducer(Producer<?> producer, BeanManagerImpl beanManager) { for (InjectionPoint injectionPoint : producer.getInjectionPoints()) { validateInjectionPoint(injectionPoint, beanManager); } }
public void validateProducer(Producer<?> producer, BeanManagerImpl beanManager) { for (InjectionPoint injectionPoint : producer.getInjectionPoints()) { validateInjectionPoint(injectionPoint, beanManager); } }
public void validateProducer(Producer<?> producer, BeanManagerImpl beanManager) { for (InjectionPoint injectionPoint : producer.getInjectionPoints()) { validateInjectionPoint(injectionPoint, beanManager); } }
@Override public void validate(InjectionPoint ij) { try { getServices().get(Validator.class).validateInjectionPoint(ij, this); } catch (DeploymentException e) { throw new InjectionException(e.getLocalizedMessage(), e.getCause()); } }
@Override public void validate(InjectionPoint ij) { try { getServices().get(Validator.class).validateInjectionPoint(ij, this); } catch (DeploymentException e) { throw new InjectionException(e.getLocalizedMessage(), e.getCause()); } }
@Override public void validate(InjectionPoint ij) { try { getServices().get(Validator.class).validateInjectionPoint(ij, this); } catch (DeploymentException e) { throw new InjectionException(e.getLocalizedMessage(), e.getCause()); } }
@Override public void validate(InjectionPoint ij) { try { getServices().get(Validator.class).validateInjectionPoint(ij, this); } catch (DeploymentException e) { throw new InjectionException(e.getLocalizedMessage(), e.getCause()); } }
@Override public void validate(InjectionPoint ij) { try { getServices().get(Validator.class).validateInjectionPoint(ij, this); } catch (DeploymentException e) { throw new InjectionException(e.getLocalizedMessage(), e.getCause()); } }
@Override public void validate(InjectionPoint ij) { try { getServices().get(Validator.class).validateInjectionPoint(ij, this); } catch (DeploymentException e) { throw new InjectionException(e.getLocalizedMessage(), e.getCause()); } }
protected void validateInterceptor(Interceptor<?> interceptor, BeanManagerImpl manager) { if (interceptor instanceof InterceptorImpl<?>) { EnhancedAnnotatedType<?> annotated = ((InterceptorImpl<?>) interceptor).getEnhancedAnnotated(); if (!BeanMethods.getObserverMethods(annotated).isEmpty() || !BeanMethods.getAsyncObserverMethods(annotated).isEmpty()) { throw ValidatorLogger.LOG.interceptorsCannotHaveObserverMethods(interceptor); } if (!interceptor.getScope().equals(Dependent.class)) { throw ValidatorLogger.LOG.interceptorOrDecoratorMustBeDependent(interceptor); } while (annotated != null && annotated.getJavaClass() != Object.class) { if (!annotated.getDeclaredEnhancedMethods(Produces.class).isEmpty()) { throw ValidatorLogger.LOG.interceptorsCannotHaveProducerMethods(interceptor); } if (!annotated.getDeclaredEnhancedFields(Produces.class).isEmpty()) { throw ValidatorLogger.LOG.interceptorsCannotHaveProducerFields(interceptor); } if (!annotated.getDeclaredEnhancedMethodsWithAnnotatedParameters(Disposes.class).isEmpty()) { throw ValidatorLogger.LOG.interceptorsCannotHaveDisposerMethods(interceptor); } annotated = annotated.getEnhancedSuperclass(); } } for (InjectionPoint injectionPoint : interceptor.getInjectionPoints()) { validateInjectionPoint(injectionPoint, manager); } }
protected void validateInterceptor(Interceptor<?> interceptor, BeanManagerImpl manager) { if (interceptor instanceof InterceptorImpl<?>) { EnhancedAnnotatedType<?> annotated = ((InterceptorImpl<?>) interceptor).getEnhancedAnnotated(); if (!BeanMethods.getObserverMethods(annotated).isEmpty()) { throw ValidatorLogger.LOG.interceptorsCannotHaveObserverMethods(interceptor); } if (!interceptor.getScope().equals(Dependent.class)) { throw ValidatorLogger.LOG.interceptorOrDecoratorMustBeDependent(interceptor); } while (annotated != null && annotated.getJavaClass() != Object.class) { if (!annotated.getDeclaredEnhancedMethods(Produces.class).isEmpty()) { throw ValidatorLogger.LOG.interceptorsCannotHaveProducerMethods(interceptor); } if (!annotated.getDeclaredEnhancedFields(Produces.class).isEmpty()) { throw ValidatorLogger.LOG.interceptorsCannotHaveProducerFields(interceptor); } if (!annotated.getDeclaredEnhancedMethodsWithAnnotatedParameters(Disposes.class).isEmpty()) { throw ValidatorLogger.LOG.interceptorsCannotHaveDisposerMethods(interceptor); } annotated = annotated.getEnhancedSuperclass(); } } for (InjectionPoint injectionPoint : interceptor.getInjectionPoints()) { validateInjectionPoint(injectionPoint, manager); } }
protected void validateGeneralBean(Bean<?> bean, BeanManagerImpl beanManager) { for (InjectionPoint ij : bean.getInjectionPoints()) { validateInjectionPoint(ij, beanManager); } // Validate all pseudo-scoped beans, except for built-in beans and session beans which are proxied by the EJB container if (!beanManager.isNormalScope(bean.getScope()) && !(bean instanceof AbstractBuiltInBean) && !(bean instanceof SessionBean)) { validatePseudoScopedBean(bean, beanManager); } if (beanManager.isPassivatingScope(bean.getScope()) && !Beans.isPassivationCapableBean(bean)) { throw ValidatorLogger.LOG.beanWithPassivatingScopeNotPassivationCapable(bean); } }
protected void validateGeneralBean(Bean<?> bean, BeanManagerImpl beanManager) { for (InjectionPoint ij : bean.getInjectionPoints()) { validateInjectionPoint(ij, beanManager); } // Validate all pseudo-scoped beans, except for built-in beans and session beans which are proxied by the EJB container if (!beanManager.isNormalScope(bean.getScope()) && !(bean instanceof AbstractBuiltInBean) && !(bean instanceof SessionBean)) { validatePseudoScopedBean(bean, beanManager); } if (beanManager.isPassivatingScope(bean.getScope()) && !Beans.isPassivationCapableBean(bean)) { throw ValidatorLogger.LOG.beanWithPassivatingScopeNotPassivationCapable(bean); } }
protected void validateGeneralBean(Bean<?> bean, BeanManagerImpl beanManager) { for (InjectionPoint ij : bean.getInjectionPoints()) { validateInjectionPoint(ij, beanManager); } // Validate all pseudo-scoped beans, except for built-in beans and session beans which are proxied by the EJB container if (!beanManager.isNormalScope(bean.getScope()) && !(bean instanceof AbstractBuiltInBean) && !(bean instanceof SessionBean)) { validatePseudoScopedBean(bean, beanManager); } if (beanManager.isPassivatingScope(bean.getScope()) && !Beans.isPassivationCapableBean(bean)) { throw ValidatorLogger.LOG.beanWithPassivatingScopeNotPassivationCapable(bean); } }
protected void validateGeneralBean(Bean<?> bean, BeanManagerImpl beanManager) { for (InjectionPoint ij : bean.getInjectionPoints()) { validateInjectionPoint(ij, beanManager); } // Validate all pseudo-scoped beans, except for built-in beans and session beans which are proxied by the EJB container if (!beanManager.isNormalScope(bean.getScope()) && !(bean instanceof AbstractBuiltInBean) && !(bean instanceof SessionBean)) { validatePseudoScopedBean(bean, beanManager); } if (beanManager.isPassivatingScope(bean.getScope()) && !Beans.isPassivationCapableBean(bean)) { throw ValidatorLogger.LOG.beanWithPassivatingScopeNotPassivationCapable(bean); } }
protected void validateGeneralBean(Bean<?> bean, BeanManagerImpl beanManager) { for (InjectionPoint ij : bean.getInjectionPoints()) { validateInjectionPoint(ij, beanManager); } // Validate all pseudo-scoped beans, except for built-in beans and session beans which are proxied by the EJB container if (!beanManager.isNormalScope(bean.getScope()) && !(bean instanceof AbstractBuiltInBean) && !(bean instanceof SessionBean)) { validatePseudoScopedBean(bean, beanManager); } if (beanManager.isPassivatingScope(bean.getScope()) && !Beans.isPassivationCapableBean(bean)) { throw ValidatorLogger.LOG.beanWithPassivatingScopeNotPassivationCapable(bean); } }
protected void validateGeneralBean(Bean<?> bean, BeanManagerImpl beanManager) { for (InjectionPoint ij : bean.getInjectionPoints()) { validateInjectionPoint(ij, beanManager); } // Validate all pseudo-scoped beans, except for built-in beans and session beans which are proxied by the EJB container if (!beanManager.isNormalScope(bean.getScope()) && !(bean instanceof AbstractBuiltInBean) && !(bean instanceof SessionBean)) { validatePseudoScopedBean(bean, beanManager); } if (beanManager.isPassivatingScope(bean.getScope()) && !Beans.isPassivationCapableBean(bean)) { throw ValidatorLogger.LOG.beanWithPassivatingScopeNotPassivationCapable(bean); } }