private boolean isInterceptor() { return (getBean() instanceof Interceptor<?>) || getType().isAnnotationPresent(javax.interceptor.Interceptor.class); }
private boolean isInterceptionCandidate() { return !isInterceptor() && !isDecorator() && !Modifier.isAbstract(getType().getJavaClass().getModifiers()); }
protected <T> SlimAnnotatedTypeContext<T> createContext(SlimAnnotatedType<T> type) { if (type != null) { return SlimAnnotatedTypeContext.of(type); } return null; }
@Override public <X> SlimAnnotatedType<X> get(Class<X> type, String suffix) { for (SlimAnnotatedType<X> annotatedType : get(type)) { if (Objects.equals(annotatedType.getIdentifier().getSuffix(), suffix)) { return annotatedType; } } return null; }
public static <T> SlimAnnotatedTypeContext<T> of(SlimAnnotatedType<T> type, ClassFileInfo classInfo, Set<ExtensionObserverMethodImpl<?, ?>> resolvedProcessAnnotatedTypeObservers) { return new SlimAnnotatedTypeContext<T>(type, classInfo, resolvedProcessAnnotatedTypeObservers, null); }
@Override public int hashCode() { return identifier.hashCode(); }
@Override public Set<Type> getTypes() { return annotatedType.getTypeClosure(); }
@Override public <X> SlimAnnotatedType<X> get(Class<X> type, String suffix) { for (SlimAnnotatedType<X> annotatedType : get(type)) { if (Objects.equals(annotatedType.getIdentifier().getSuffix(), suffix)) { return annotatedType; } } return null; }
protected <T> SlimAnnotatedTypeContext<T> createContext(SlimAnnotatedType<T> type) { if (type != null) { return SlimAnnotatedTypeContext.of(type); } return null; }
private boolean isDecorator() { return (getBean() instanceof Decorator<?>) || getType().isAnnotationPresent(javax.decorator.Decorator.class); }
public static <T> SlimAnnotatedTypeContext<T> of(SlimAnnotatedType<T> type, ClassFileInfo classInfo, Set<ContainerLifecycleEventObserverMethod<?>> resolvedProcessAnnotatedTypeObservers) { return new SlimAnnotatedTypeContext<T>(type, classInfo, resolvedProcessAnnotatedTypeObservers, null); }
@Override public int hashCode() { return identifier.hashCode(); }
@Override public <X> SlimAnnotatedType<X> get(Class<X> type, String suffix) { for (SlimAnnotatedType<X> annotatedType : get(type)) { if (Objects.equals(annotatedType.getIdentifier().getSuffix(), suffix)) { return annotatedType; } } return null; }
protected <T> SlimAnnotatedTypeContext<T> createContext(SlimAnnotatedType<T> type) { if (type != null) { return SlimAnnotatedTypeContext.of(type); } return null; }
@Override public <X> SlimAnnotatedType<X> get(Class<X> type, String suffix) { for (SlimAnnotatedType<X> annotatedType : get(type)) { if (Objects.equals(annotatedType.getIdentifier().getSuffix(), suffix)) { return annotatedType; } } return null; }
protected <T> SlimAnnotatedTypeContext<T> createContext(SlimAnnotatedType<T> type) { if (type != null) { return SlimAnnotatedTypeContext.of(type); } return null; }
@Override public <X> SlimAnnotatedType<X> get(Class<X> type, String suffix) { for (SlimAnnotatedType<X> annotatedType : get(type)) { if (Objects.equals(annotatedType.getIdentifier().getSuffix(), suffix)) { return annotatedType; } } return null; }
protected <T> SlimAnnotatedTypeContext<T> createContext(SlimAnnotatedType<T> type) { if (type != null) { return SlimAnnotatedTypeContext.of(type); } return null; }
@Override public <X> SlimAnnotatedType<X> get(Class<X> type, String suffix) { for (SlimAnnotatedType<X> annotatedType : get(type)) { if (Objects.equals(annotatedType.getIdentifier().getSuffix(), suffix)) { return annotatedType; } } return null; }
protected <T> SlimAnnotatedTypeContext<T> createContext(SlimAnnotatedType<T> type) { if (type != null) { return SlimAnnotatedTypeContext.of(type); } return null; }