@Override public void initializeAfterBeanDiscovery() { if (this.passivationCapableBean && hasDecorators() && !allDecoratorsArePassivationCapable()) { this.passivationCapableBean = false; } if (this.passivationCapableBean && hasInterceptors() && !allInterceptorsArePassivationCapable()) { this.passivationCapableBean = false; } super.initializeAfterBeanDiscovery(); }
@Override public void initializeAfterBeanDiscovery() { if (this.passivationCapableBean && hasDecorators() && !allDecoratorsArePassivationCapable()) { this.passivationCapableBean = false; } if (this.passivationCapableBean && hasInterceptors() && !allInterceptorsArePassivationCapable()) { this.passivationCapableBean = false; } super.initializeAfterBeanDiscovery(); }
@Override public void initializeAfterBeanDiscovery() { if (this.passivationCapableBean && hasDecorators() && !allDecoratorsArePassivationCapable()) { this.passivationCapableBean = false; } if (this.passivationCapableBean && hasInterceptors() && !allInterceptorsArePassivationCapable()) { this.passivationCapableBean = false; } super.initializeAfterBeanDiscovery(); }
@Override public void initializeAfterBeanDiscovery() { if (this.passivationCapableBean && hasDecorators() && !allDecoratorsArePassivationCapable()) { this.passivationCapableBean = false; } if (this.passivationCapableBean && hasInterceptors() && !allInterceptorsArePassivationCapable()) { this.passivationCapableBean = false; } super.initializeAfterBeanDiscovery(); }
@Override public void initializeAfterBeanDiscovery() { if (this.passivationCapableBean && hasDecorators() && !allDecoratorsArePassivationCapable()) { this.passivationCapableBean = false; } if (this.passivationCapableBean && hasInterceptors() && !allInterceptorsArePassivationCapable()) { this.passivationCapableBean = false; } super.initializeAfterBeanDiscovery(); }
@Override public void initializeAfterBeanDiscovery() { if (this.passivationCapableBean && hasDecorators() && !allDecoratorsArePassivationCapable()) { this.passivationCapableBean = false; } if (this.passivationCapableBean && hasInterceptors() && !allInterceptorsArePassivationCapable()) { this.passivationCapableBean = false; } super.initializeAfterBeanDiscovery(); }
/** * 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()); } } }
/** * 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()); } } }
/** * 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()); } } }