@ 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