@Override public boolean isScope(Class<? extends Annotation> annotationType) { return getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType).isValid(); }
@Override public boolean isScope(Class<? extends Annotation> annotationType) { return getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType).isValid(); }
@Override public boolean isScope(Class<? extends Annotation> annotationType) { return getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType).isValid(); }
@Override public boolean isNormalScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isNormal(); }
@Override public boolean isPassivatingScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isPassivating(); }
/** * Indicates if a bean's scope type is passivating * * @param bean The bean to inspect * @return True if the scope is passivating, false otherwise */ public static boolean isPassivatingScope(Bean<?> bean, BeanManagerImpl manager) { if (bean == null) { return false; } else { return manager.getServices().get(MetaAnnotationStore.class).getScopeModel(bean.getScope()).isPassivating(); } }
@Override public boolean isNormalScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isNormal(); }
@Override public boolean isPassivatingScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isPassivating(); }
/** * Indicates if a bean's scope type is passivating * * @param bean The bean to inspect * @return True if the scope is passivating, false otherwise */ public static boolean isPassivatingScope(Bean<?> bean, BeanManagerImpl manager) { if (bean == null) { return false; } else { return manager.getServices().get(MetaAnnotationStore.class).getScopeModel(bean.getScope()).isPassivating(); } }
@Override public boolean isNormalScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isNormal(); }
@Override public boolean isPassivatingScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isPassivating(); }
@Override public boolean isNormalScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isNormal(); }
@Override public boolean isPassivatingScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isPassivating(); }
@Override public boolean isPassivatingScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isPassivating(); }
@Override public boolean isNormalScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isNormal(); }
@Override public boolean isPassivatingScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isPassivating(); }
@Override public boolean isNormalScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isNormal(); }
/** * Indicates if a bean's scope type is passivating * * @param bean The bean to inspect * @return True if the scope is passivating, false otherwise */ public static boolean isPassivatingScope(Bean<?> bean, BeanManagerImpl manager) { if (bean == null) { return false; } else { return manager.getServices().get(MetaAnnotationStore.class).getScopeModel(bean.getScope()).isPassivating(); } }
@Override protected void checkType() { if (!isDependent() && getEnhancedAnnotated().isGeneric()) { throw BeanLogger.LOG.genericSessionBeanMustBeDependent(this); } boolean passivating = beanManager.getServices().get(MetaAnnotationStore.class).getScopeModel(getScope()).isPassivating(); if (passivating && !isPassivationCapableBean()) { throw BeanLogger.LOG.passivatingBeanNeedsSerializableImpl(this); } }
@Override protected void checkType() { if (!isDependent() && getEnhancedAnnotated().isGeneric()) { throw BeanLogger.LOG.genericSessionBeanMustBeDependent(this); } boolean passivating = beanManager.getServices().get(MetaAnnotationStore.class).getScopeModel(getScope()).isPassivating(); if (passivating && !isPassivationCapableBean()) { throw BeanLogger.LOG.passivatingBeanNeedsSerializableImpl(this); } }