private boolean isInterceptor() { return (getBean() instanceof Interceptor<?>) || getType().isAnnotationPresent(javax.interceptor.Interceptor.class); }
private boolean isDecorator() { return (getBean() instanceof Decorator<?>) || getType().isAnnotationPresent(javax.decorator.Decorator.class); }
private boolean checkScopeInheritanceRules(SlimAnnotatedType<?> type, ExtensionObserverMethodImpl<?, ?> observer) { Collection<Class<? extends Annotation>> scopes = observer.getRequiredScopeAnnotations(); if (!scopes.isEmpty() && scopes.size() == observer.getRequiredScopeAnnotations().size()) { // this check only works if only scope annotations are listed within @WithAnnotations // performing a complete check would be way too expensive - eliminating the benefit of ClassFileServices for (Class<? extends Annotation> annotation : scopes) { if (type.isAnnotationPresent(annotation)) { return true; } } return false; } return true; }
protected boolean isInterceptor() { return (getBean() instanceof Interceptor<?>) || getType().isAnnotationPresent(javax.interceptor.Interceptor.class); }
protected boolean isInterceptor() { return (getBean() instanceof Interceptor<?>) || getType().isAnnotationPresent(javax.interceptor.Interceptor.class); }
protected boolean isDecorator() { return (getBean() instanceof Decorator<?>) || getType().isAnnotationPresent(javax.decorator.Decorator.class); }
private boolean checkScopeInheritanceRules(SlimAnnotatedType<?> type, ContainerLifecycleEventObserverMethod<?> observer, BeanManagerImpl beanManager) { Collection<Class<? extends Annotation>> scopes; if (observer instanceof ExtensionObserverMethodImpl) { ExtensionObserverMethodImpl<?, ?> extensionObserver = (ExtensionObserverMethodImpl<?, ?>) observer; scopes = extensionObserver.getRequiredScopeAnnotations(); } else { scopes = observer.getRequiredAnnotations().stream().filter((a) -> beanManager.isScope(a)).collect(Collectors.toSet()); } if (!scopes.isEmpty() && scopes.size() == observer.getRequiredAnnotations().size()) { // this check only works if only scope annotations are listed within @WithAnnotations // performing a complete check would be way too expensive - eliminating the benefit of ClassFileServices for (Class<? extends Annotation> annotation : scopes) { if (type.isAnnotationPresent(annotation)) { return true; } } return false; } return true; }
private boolean checkScopeInheritanceRules(SlimAnnotatedType<?> type, ContainerLifecycleEventObserverMethod<?> observer, BeanManagerImpl beanManager) { Collection<Class<? extends Annotation>> scopes; if (observer instanceof ExtensionObserverMethodImpl) { ExtensionObserverMethodImpl<?, ?> extensionObserver = (ExtensionObserverMethodImpl<?, ?>) observer; scopes = extensionObserver.getRequiredScopeAnnotations(); } else { scopes = observer.getRequiredAnnotations().stream().filter((a) -> beanManager.isScope(a)).collect(Collectors.toSet()); } if (!scopes.isEmpty() && scopes.size() == observer.getRequiredAnnotations().size()) { // this check only works if only scope annotations are listed within @WithAnnotations // performing a complete check would be way too expensive - eliminating the benefit of ClassFileServices for (Class<? extends Annotation> annotation : scopes) { if (type.isAnnotationPresent(annotation)) { return true; } } return false; } return true; }
protected boolean isInterceptor() { return (getBean() instanceof Interceptor<?>) || getType().isAnnotationPresent(javax.interceptor.Interceptor.class); }
protected boolean isDecorator() { return (getBean() instanceof Decorator<?>) || getType().isAnnotationPresent(javax.decorator.Decorator.class); }
protected boolean isInterceptor() { return (getBean() instanceof Interceptor<?>) || getType().isAnnotationPresent(javax.interceptor.Interceptor.class); }
protected boolean isDecorator() { return (getBean() instanceof Decorator<?>) || getType().isAnnotationPresent(javax.decorator.Decorator.class); }
protected boolean isInterceptor() { return (getBean() instanceof Interceptor<?>) || getType().isAnnotationPresent(javax.interceptor.Interceptor.class); }
protected boolean isDecorator() { return (getBean() instanceof Decorator<?>) || getType().isAnnotationPresent(javax.decorator.Decorator.class); }
protected boolean isDecorator() { return (getBean() instanceof Decorator<?>) || getType().isAnnotationPresent(javax.decorator.Decorator.class); }
protected boolean isInterceptor() { return (getBean() instanceof Interceptor<?>) || getType().isAnnotationPresent(javax.interceptor.Interceptor.class); }
protected boolean isDecorator() { return (getBean() instanceof Decorator<?>) || getType().isAnnotationPresent(javax.decorator.Decorator.class); }
private boolean checkScopeInheritanceRules(SlimAnnotatedType<?> type, ContainerLifecycleEventObserverMethod<?> observer, BeanManagerImpl beanManager) { Collection<Class<? extends Annotation>> scopes; if (observer instanceof ExtensionObserverMethodImpl) { ExtensionObserverMethodImpl<?, ?> extensionObserver = (ExtensionObserverMethodImpl<?, ?>) observer; scopes = extensionObserver.getRequiredScopeAnnotations(); } else { scopes = observer.getRequiredAnnotations().stream().filter((a) -> beanManager.isScope(a)).collect(Collectors.toSet()); } if (!scopes.isEmpty() && scopes.size() == observer.getRequiredAnnotations().size()) { // this check only works if only scope annotations are listed within @WithAnnotations // performing a complete check would be way too expensive - eliminating the benefit of ClassFileServices for (Class<? extends Annotation> annotation : scopes) { if (type.isAnnotationPresent(annotation)) { return true; } } return false; } return true; }
private boolean checkScopeInheritanceRules(SlimAnnotatedType<?> type, ContainerLifecycleEventObserverMethod<?> observer, BeanManagerImpl beanManager) { Collection<Class<? extends Annotation>> scopes; if (observer instanceof ExtensionObserverMethodImpl) { ExtensionObserverMethodImpl<?, ?> extensionObserver = (ExtensionObserverMethodImpl<?, ?>) observer; scopes = extensionObserver.getRequiredScopeAnnotations(); } else { scopes = observer.getRequiredAnnotations().stream().filter((a) -> beanManager.isScope(a)).collect(Collectors.toSet()); } if (!scopes.isEmpty() && scopes.size() == observer.getRequiredAnnotations().size()) { // this check only works if only scope annotations are listed within @WithAnnotations // performing a complete check would be way too expensive - eliminating the benefit of ClassFileServices for (Class<? extends Annotation> annotation : scopes) { if (type.isAnnotationPresent(annotation)) { return true; } } return false; } return true; }
private boolean checkScopeInheritanceRules(SlimAnnotatedType<?> type, ContainerLifecycleEventObserverMethod<?> observer, BeanManagerImpl beanManager) { Collection<Class<? extends Annotation>> scopes; if (observer instanceof ExtensionObserverMethodImpl) { ExtensionObserverMethodImpl<?, ?> extensionObserver = (ExtensionObserverMethodImpl<?, ?>) observer; scopes = extensionObserver.getRequiredScopeAnnotations(); } else { scopes = observer.getRequiredAnnotations().stream().filter((a) -> beanManager.isScope(a)).collect(Collectors.toSet()); } if (!scopes.isEmpty() && scopes.size() == observer.getRequiredAnnotations().size()) { // this check only works if only scope annotations are listed within @WithAnnotations // performing a complete check would be way too expensive - eliminating the benefit of ClassFileServices for (Class<? extends Annotation> annotation : scopes) { if (type.isAnnotationPresent(annotation)) { return true; } } return false; } return true; }