private Decorator<?> getFirstNonPassivationCapableDecorator() { for (Decorator<?> decorator : getDecorators()) { if (!Decorators.isPassivationCapable(decorator)) { return decorator; } } return null; }
private Decorator<?> getFirstNonPassivationCapableDecorator() { for (Decorator<?> decorator : getDecorators()) { if (!Decorators.isPassivationCapable(decorator)) { return decorator; } } return null; }
private Decorator<?> getFirstNonPassivationCapableDecorator() { for (Decorator<?> decorator : getDecorators()) { if (!Decorators.isPassivationCapable(decorator)) { return decorator; } } return null; }
private Decorator<?> getFirstNonPassivationCapableDecorator() { for (Decorator<?> decorator : getDecorators()) { if (!Decorators.isPassivationCapable(decorator)) { return decorator; } } return null; }
private Decorator<?> getFirstNonPassivationCapableDecorator() { for (Decorator<?> decorator : getDecorators()) { if (!Decorators.isPassivationCapable(decorator)) { return decorator; } } return null; }
private Decorator<?> getFirstNonPassivationCapableDecorator() { for (Decorator<?> decorator : getDecorators()) { if (!Decorators.isPassivationCapable(decorator)) { return decorator; } } return null; }
if (delegateType instanceof ParameterizedType) { ParameterizedType parameterizedDelegateType = (ParameterizedType) delegateType; if (!Decorators.isPassivationCapable(decorator)) { if (Instance.class.equals(parameterizedDelegateType.getRawType()) || Provider.class.equals(parameterizedDelegateType.getRawType())) { throw ValidatorLogger.LOG.builtinBeanWithNonserializableDecorator(decorator, Instance.class.getName());
if (delegateType instanceof ParameterizedType) { ParameterizedType parameterizedDelegateType = (ParameterizedType) delegateType; if (!Decorators.isPassivationCapable(decorator)) { if (Instance.class.equals(parameterizedDelegateType.getRawType()) || Provider.class.equals(parameterizedDelegateType.getRawType())) { throw ValidatorLogger.LOG.builtinBeanWithNonserializableDecorator(decorator, Instance.class.getName());
if (delegateType instanceof ParameterizedType) { ParameterizedType parameterizedDelegateType = (ParameterizedType) delegateType; if (!Decorators.isPassivationCapable(decorator)) { if (Instance.class.equals(parameterizedDelegateType.getRawType()) || Provider.class.equals(parameterizedDelegateType.getRawType())) { throw ValidatorLogger.LOG.builtinBeanWithNonserializableDecorator(decorator, Instance.class.getName());
if (delegateType instanceof ParameterizedType) { ParameterizedType parameterizedDelegateType = (ParameterizedType) delegateType; if (!Decorators.isPassivationCapable(decorator)) { if (Instance.class.equals(parameterizedDelegateType.getRawType()) || Provider.class.equals(parameterizedDelegateType.getRawType())) { throw ValidatorLogger.LOG.builtinBeanWithNonserializableDecorator(decorator, Instance.class.getName());
if (delegateType instanceof ParameterizedType) { ParameterizedType parameterizedDelegateType = (ParameterizedType) delegateType; if (!Decorators.isPassivationCapable(decorator)) { if (Instance.class.equals(parameterizedDelegateType.getRawType()) || Provider.class.equals(parameterizedDelegateType.getRawType())) { throw ValidatorLogger.LOG.builtinBeanWithNonserializableDecorator(decorator, Instance.class.getName());
if (delegateType instanceof ParameterizedType) { ParameterizedType parameterizedDelegateType = (ParameterizedType) delegateType; if (!Decorators.isPassivationCapable(decorator)) { if (Instance.class.equals(parameterizedDelegateType.getRawType()) || Provider.class.equals(parameterizedDelegateType.getRawType())) { throw ValidatorLogger.LOG.builtinBeanWithNonserializableDecorator(decorator, Instance.class.getName());
private void validateDecorators(BeanManagerImpl beanManager, DecorableBean<?> bean) { if (!(beanManager.isPassivatingScope(bean.getScope()) || bean instanceof AbstractDecorableBuiltInBean<?>)) { return; } List<Decorator<?>> decorators = bean.getDecorators(); if (decorators.isEmpty()) { return; } for (Decorator<?> decorator : decorators) { if (!Decorators.isPassivationCapable(decorator)) { if (bean instanceof AbstractDecorableBuiltInBean<?>) { throw ValidatorLogger.LOG.builtinBeanWithNonserializableDecorator(decorator, bean); } else { throw ValidatorLogger.LOG.passivatingBeanWithNonserializableDecorator(bean, decorator); } } if (decorator instanceof DecoratorImpl) { beanManager = ((DecoratorImpl<?>) decorator).getBeanManager(); } for (InjectionPoint ij : decorator.getInjectionPoints()) { if (!ij.isDelegate()) { Bean<?> resolvedBean = beanManager.resolve(beanManager.getBeans(ij)); validateInterceptorDecoratorInjectionPointPassivationCapable(ij, resolvedBean, beanManager, bean); } } } }
private void validateDecorators(BeanManagerImpl beanManager, DecorableBean<?> bean) { if (!(beanManager.isPassivatingScope(bean.getScope()) || bean instanceof AbstractDecorableBuiltInBean<?>)) { return; } List<Decorator<?>> decorators = bean.getDecorators(); if (decorators.isEmpty()) { return; } for (Decorator<?> decorator : decorators) { if (!Decorators.isPassivationCapable(decorator)) { if (bean instanceof AbstractDecorableBuiltInBean<?>) { throw ValidatorLogger.LOG.builtinBeanWithNonserializableDecorator(decorator, bean); } else { throw ValidatorLogger.LOG.passivatingBeanWithNonserializableDecorator(bean, decorator); } } if (decorator instanceof DecoratorImpl) { beanManager = ((DecoratorImpl<?>) decorator).getBeanManager(); } for (InjectionPoint ij : decorator.getInjectionPoints()) { if (!ij.isDelegate()) { Bean<?> resolvedBean = beanManager.resolve(beanManager.getBeans(ij)); validateInterceptorDecoratorInjectionPointPassivationCapable(ij, resolvedBean, beanManager, bean); } } } }
private void validateDecorators(BeanManagerImpl beanManager, DecorableBean<?> bean) { if (!(beanManager.isPassivatingScope(bean.getScope()) || bean instanceof AbstractDecorableBuiltInBean<?>)) { return; } List<Decorator<?>> decorators = bean.getDecorators(); if (decorators.isEmpty()) { return; } for (Decorator<?> decorator : decorators) { if (!Decorators.isPassivationCapable(decorator)) { if (bean instanceof AbstractDecorableBuiltInBean<?>) { throw ValidatorLogger.LOG.builtinBeanWithNonserializableDecorator(decorator, bean); } else { throw ValidatorLogger.LOG.passivatingBeanWithNonserializableDecorator(bean, decorator); } } if (decorator instanceof DecoratorImpl) { beanManager = ((DecoratorImpl<?>) decorator).getBeanManager(); } for (InjectionPoint ij : decorator.getInjectionPoints()) { if (!ij.isDelegate()) { Bean<?> resolvedBean = beanManager.resolve(beanManager.getBeans(ij)); validateInterceptorDecoratorInjectionPointPassivationCapable(ij, resolvedBean, beanManager, bean); } } } }
private void validateDecorators(BeanManagerImpl beanManager, DecorableBean<?> bean) { if (!(beanManager.isPassivatingScope(bean.getScope()) || bean instanceof AbstractDecorableBuiltInBean<?>)) { return; } List<Decorator<?>> decorators = bean.getDecorators(); if (decorators.isEmpty()) { return; } for (Decorator<?> decorator : decorators) { if (!Decorators.isPassivationCapable(decorator)) { if (bean instanceof AbstractDecorableBuiltInBean<?>) { throw ValidatorLogger.LOG.builtinBeanWithNonserializableDecorator(decorator, bean); } else { throw ValidatorLogger.LOG.passivatingBeanWithNonserializableDecorator(bean, decorator); } } if (decorator instanceof DecoratorImpl) { beanManager = ((DecoratorImpl<?>) decorator).getBeanManager(); } for (InjectionPoint ij : decorator.getInjectionPoints()) { if (!ij.isDelegate()) { Bean<?> resolvedBean = beanManager.resolve(beanManager.getBeans(ij)); validateInterceptorDecoratorInjectionPointPassivationCapable(ij, resolvedBean, beanManager, bean); } } } }
private void validateDecorators(BeanManagerImpl beanManager, DecorableBean<?> bean) { if (!(beanManager.isPassivatingScope(bean.getScope()) || bean instanceof AbstractDecorableBuiltInBean<?>)) { return; } List<Decorator<?>> decorators = bean.getDecorators(); if (decorators.isEmpty()) { return; } for (Decorator<?> decorator : decorators) { if (!Decorators.isPassivationCapable(decorator)) { if (bean instanceof AbstractDecorableBuiltInBean<?>) { throw ValidatorLogger.LOG.builtinBeanWithNonserializableDecorator(decorator, bean); } else { throw ValidatorLogger.LOG.passivatingBeanWithNonserializableDecorator(bean, decorator); } } if (decorator instanceof DecoratorImpl) { beanManager = ((DecoratorImpl<?>) decorator).getBeanManager(); } for (InjectionPoint ij : decorator.getInjectionPoints()) { if (!ij.isDelegate()) { Bean<?> resolvedBean = beanManager.resolve(beanManager.getBeans(ij)); validateInterceptorDecoratorInjectionPointPassivationCapable(ij, resolvedBean, beanManager, bean); } } } }
private void validateDecorators(BeanManagerImpl beanManager, DecorableBean<?> bean) { if (!(beanManager.isPassivatingScope(bean.getScope()) || bean instanceof AbstractDecorableBuiltInBean<?>)) { return; } List<Decorator<?>> decorators = bean.getDecorators(); if (decorators.isEmpty()) { return; } for (Decorator<?> decorator : decorators) { if (!Decorators.isPassivationCapable(decorator)) { if (bean instanceof AbstractDecorableBuiltInBean<?>) { throw ValidatorLogger.LOG.builtinBeanWithNonserializableDecorator(decorator, bean); } else { throw ValidatorLogger.LOG.passivatingBeanWithNonserializableDecorator(bean, decorator); } } if (decorator instanceof DecoratorImpl) { beanManager = ((DecoratorImpl<?>) decorator).getBeanManager(); } for (InjectionPoint ij : decorator.getInjectionPoints()) { if (!ij.isDelegate()) { Bean<?> resolvedBean = beanManager.resolve(beanManager.getBeans(ij)); validateInterceptorDecoratorInjectionPointPassivationCapable(ij, resolvedBean, beanManager, bean); } } } }