/** * Gets a string representation of the scope model * * @return The string representation */ @Override public String toString() { String valid = isValid() ? "Valid " : "Invalid"; String normal = isNormal() ? "normal " : "non-normal "; String passivating = isPassivating() ? "passivating " : "pon-passivating "; return valid + normal + passivating + " scope model for " + getRawType(); }
/** * Gets a string representation of the scope model * * @return The string representation */ @Override public String toString() { String valid = isValid() ? "Valid " : "Invalid"; String normal = isNormal() ? "normal " : "non-normal "; String passivating = isPassivating() ? "passivating " : "pon-passivating "; return valid + normal + passivating + " scope model for " + getRawType(); }
/** * Gets a string representation of the scope model * * @return The string representation */ @Override public String toString() { String valid = isValid() ? "Valid " : "Invalid"; String normal = isNormal() ? "normal " : "non-normal "; String passivating = isPassivating() ? "passivating " : "pon-passivating "; return valid + normal + passivating + " scope model for " + getRawType(); }
/** * Gets a string representation of the scope model * * @return The string representation */ @Override public String toString() { String valid = isValid() ? "Valid " : "Invalid"; String normal = isNormal() ? "normal " : "non-normal "; String passivating = isPassivating() ? "passivating " : "pon-passivating "; return valid + normal + passivating + " scope model for " + getRawType(); }
/** * Gets a string representation of the scope model * * @return The string representation */ @Override public String toString() { String valid = isValid() ? "Valid " : "Invalid"; String normal = isNormal() ? "normal " : "non-normal "; String passivating = isPassivating() ? "passivating " : "pon-passivating "; return valid + normal + passivating + " scope model for " + getRawType(); }
/** * Gets a string representation of the scope model * * @return The string representation */ @Override public String toString() { String valid = isValid() ? "Valid " : "Invalid"; String normal = isNormal() ? "normal " : "non-normal "; String passivating = isPassivating() ? "passivating " : "pon-passivating "; return valid + normal + passivating + " scope model for " + getRawType(); }
@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 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 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 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(); }
/** * 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(); } }
/** * 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(); } }
/** * 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(); } }
/** * 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); } }