public void addContext(Context context) { Class<? extends Annotation> scope = context.getScope(); if (isPassivatingScope(scope)) { context = PassivatingContextWrapper.wrap(context, services.get(ContextualStore.class)); } List<Context> contextList = contexts.get(scope); if (contextList == null) { contextList = new CopyOnWriteArrayList<Context>(); contexts.put(scope, contextList); } contextList.add(context); }
public void addContext(Context context) { Class<? extends Annotation> scope = context.getScope(); if (isPassivatingScope(scope)) { context = PassivatingContextWrapper.wrap(context, services.get(ContextualStore.class)); } List<Context> contextList = contexts.get(scope); if (contextList == null) { contextList = new CopyOnWriteArrayList<Context>(); contexts.put(scope, contextList); } contextList.add(context); }
public void addContext(Context context) { Class<? extends Annotation> scope = context.getScope(); if (isPassivatingScope(scope)) { context = PassivatingContextWrapper.wrap(context, services.get(ContextualStore.class)); } List<Context> contextList = contexts.get(scope); if (contextList == null) { contextList = new CopyOnWriteArrayList<Context>(); contexts.put(scope, contextList); } contextList.add(context); }
public void addContext(Context context) { Class<? extends Annotation> scope = context.getScope(); if (isPassivatingScope(scope)) { context = PassivatingContextWrapper.wrap(context, services.get(ContextualStore.class)); } List<Context> contextList = contexts.get(scope); if (contextList == null) { contextList = new CopyOnWriteArrayList<Context>(); contexts.put(scope, contextList); } contextList.add(context); }
public void addContext(Context context) { Class<? extends Annotation> scope = context.getScope(); if (isPassivatingScope(scope)) { context = PassivatingContextWrapper.wrap(context, services.get(ContextualStore.class)); } List<Context> contextList = contexts.get(scope); if (contextList == null) { contextList = new CopyOnWriteArrayList<Context>(); contexts.put(scope, contextList); } contextList.add(context); }
public void addContext(Context context) { Class<? extends Annotation> scope = context.getScope(); if (isPassivatingScope(scope)) { context = PassivatingContextWrapper.wrap(context, services.get(ContextualStore.class)); } List<Context> contextList = contexts.get(scope); if (contextList == null) { contextList = new CopyOnWriteArrayList<Context>(); contexts.put(scope, contextList); } contextList.add(context); }
@Override protected void checkType() { if (beanManager.isPassivatingScope(getScope()) && !isPassivationCapableBean()) { throw BeanLogger.LOG.passivatingBeanNeedsSerializableImpl(this); } }
@Override protected void checkType() { if (beanManager.isPassivatingScope(getScope()) && !isPassivationCapableBean()) { throw BeanLogger.LOG.passivatingBeanNeedsSerializableImpl(this); } }
@Override protected void checkType() { if (beanManager.isPassivatingScope(getScope()) && !isPassivationCapableBean()) { throw BeanLogger.LOG.passivatingBeanNeedsSerializableImpl(this); } }
@Override protected void checkType() { if (beanManager.isPassivatingScope(getScope()) && !isPassivationCapableBean()) { throw BeanLogger.LOG.passivatingBeanNeedsSerializableImpl(this); } }
@Override protected void checkType() { if (beanManager.isPassivatingScope(getScope()) && !isPassivationCapableBean()) { throw BeanLogger.LOG.passivatingBeanNeedsSerializableImpl(this); } }
@Override protected void checkType() { if (beanManager.isPassivatingScope(getScope()) && !isPassivationCapableBean()) { throw BeanLogger.LOG.passivatingBeanNeedsSerializableImpl(this); } }
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); } }
/** * Validates the type */ @Override protected void checkType() { if (!isDependent() && getEnhancedAnnotated().isParameterizedType()) { throw BeanLogger.LOG.managedBeanWithParameterizedBeanClassMustBeDependent(type); } boolean passivating = beanManager.isPassivatingScope(getScope()); if (passivating && !isPassivationCapableBean()) { if (!getEnhancedAnnotated().isSerializable()) { throw BeanLogger.LOG.passivatingBeanNeedsSerializableImpl(this); } else if (hasDecorators() && !allDecoratorsArePassivationCapable()) { throw BeanLogger.LOG.passivatingBeanHasNonPassivationCapableDecorator(this, getFirstNonPassivationCapableDecorator()); } else if (hasInterceptors() && !allInterceptorsArePassivationCapable()) { throw BeanLogger.LOG.passivatingBeanHasNonPassivationCapableInterceptor(this, getFirstNonPassivationCapableInterceptor()); } } }
/** * Validates the type */ @Override protected void checkType() { if (!isDependent() && getEnhancedAnnotated().isParameterizedType()) { throw BeanLogger.LOG.managedBeanWithParameterizedBeanClassMustBeDependent(type); } boolean passivating = beanManager.isPassivatingScope(getScope()); if (passivating && !isPassivationCapableBean()) { if (!getEnhancedAnnotated().isSerializable()) { throw BeanLogger.LOG.passivatingBeanNeedsSerializableImpl(this); } else if (hasDecorators() && !allDecoratorsArePassivationCapable()) { throw BeanLogger.LOG.passivatingBeanHasNonPassivationCapableDecorator(this, getFirstNonPassivationCapableDecorator()); } else if (hasInterceptors() && !allInterceptorsArePassivationCapable()) { throw BeanLogger.LOG.passivatingBeanHasNonPassivationCapableInterceptor(this, getFirstNonPassivationCapableInterceptor()); } } }