@Override protected CdiInterceptorBean<T> createBean(Class<T> beanClass, boolean enabled, Map<InterceptionType, Method[]> interceptionMethods) { return new CdiInterceptorBean<>(webBeansContext, annotatedType, beanAttributes, beanClass, interceptorBindings, enabled, interceptionMethods); } }
public CdiInterceptorBean(WebBeansContext webBeansContext, AnnotatedType<T> annotatedType, BeanAttributes<T> beanAttributes, Class<T> beanClass, Set<Annotation> interceptorBindings, boolean enabled, Map<InterceptionType, Method[]> interceptionMethods) { super(webBeansContext, annotatedType, beanAttributes, beanClass, interceptionMethods); this.interceptorBindings = interceptorBindings; this.setEnabled(enabled); }
private List<Method> getInterceptionMethodAsListOrEmpty(final CdiInterceptorBean cdiInterceptorBean, final InterceptionType aroundInvoke) { final Method[] methods = cdiInterceptorBean.getInterceptorMethods(aroundInvoke); return methods == null ? Collections.<Method>emptyList() : asList(methods); }