Map<InterceptionType, List<InterceptorClassMetadata<?>>> getGlobalInterceptors() { if (globalInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, List<InterceptorClassMetadata<?>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, List<InterceptorClassMetadata<?>>> entry : globalInterceptors.entrySet()) { builder.put(entry.getKey(), ImmutableList.copyOf(entry.getValue())); } return builder.build(); }
Map<InterceptionType, List<InterceptorClassMetadata<?>>> getGlobalInterceptors() { if (globalInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, List<InterceptorClassMetadata<?>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, List<InterceptorClassMetadata<?>>> entry : globalInterceptors.entrySet()) { builder.put(entry.getKey(), ImmutableList.copyOf(entry.getValue())); } return builder.build(); }
Map<InterceptionType, List<InterceptorClassMetadata<?>>> getGlobalInterceptors() { if (globalInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, List<InterceptorClassMetadata<?>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, List<InterceptorClassMetadata<?>>> entry : globalInterceptors.entrySet()) { builder.put(entry.getKey(), ImmutableList.copyOf(entry.getValue())); } return builder.build(); }
public static Map<InterceptionType, List<Method>> buildMethodMap(EnhancedAnnotatedType<?> type, boolean forTargetClass, BeanManagerImpl manager) { ImmutableMap.Builder<InterceptionType, List<Method>> builder = null; for (InterceptionType interceptionType : InterceptionTypeRegistry.getSupportedInterceptionTypes()) { List<Method> value = BeanMethods.getInterceptorMethods(type, interceptionType, forTargetClass); if (!value.isEmpty()) { if (builder == null) { builder = ImmutableMap.builder(); } builder.put(interceptionType, value); } } if (builder == null) { return Collections.emptyMap(); } return builder.build(); } }
public static Map<InterceptionType, List<Method>> buildMethodMap(EnhancedAnnotatedType<?> type, boolean forTargetClass, BeanManagerImpl manager) { ImmutableMap.Builder<InterceptionType, List<Method>> builder = null; for (InterceptionType interceptionType : InterceptionTypeRegistry.getSupportedInterceptionTypes()) { List<Method> value = BeanMethods.getInterceptorMethods(type, interceptionType, forTargetClass); if (!value.isEmpty()) { if (builder == null) { builder = ImmutableMap.builder(); } builder.put(interceptionType, value); } } if (builder == null) { return Collections.emptyMap(); } return builder.build(); } }
public void interceptGlobal(javax.enterprise.inject.spi.InterceptionType interceptionType, Constructor<?> constructor, Collection<InterceptorClassMetadata<?>> interceptors, Set<Annotation> interceptorBindings) { checkModelNotBuilt(); InterceptionType weldInterceptionType = InterceptionType.valueOf(interceptionType); List<InterceptorClassMetadata<?>> interceptorsList = globalInterceptors.get(weldInterceptionType); if (interceptorsList == null) { interceptorsList = new ArrayList<>(); globalInterceptors.put(weldInterceptionType, interceptorsList); } interceptorsList.addAll(interceptors); intercept(weldInterceptionType, interceptors); if (constructor != null) { // WELD-1742 Associate constructor interceptor bindings memberInterceptorBindings.put(constructor, interceptorBindings); } }
public void interceptGlobal(javax.enterprise.inject.spi.InterceptionType interceptionType, Constructor<?> constructor, Collection<InterceptorClassMetadata<?>> interceptors, Set<Annotation> interceptorBindings) { checkModelNotBuilt(); InterceptionType weldInterceptionType = InterceptionType.valueOf(interceptionType); List<InterceptorClassMetadata<?>> interceptorsList = globalInterceptors.get(weldInterceptionType); if (interceptorsList == null) { interceptorsList = new ArrayList<>(); globalInterceptors.put(weldInterceptionType, interceptorsList); } interceptorsList.addAll(interceptors); intercept(weldInterceptionType, interceptors); if (constructor != null) { // WELD-1742 Associate constructor interceptor bindings memberInterceptorBindings.put(constructor, interceptorBindings); } }
public void interceptGlobal(javax.enterprise.inject.spi.InterceptionType interceptionType, Constructor<?> constructor, Collection<InterceptorClassMetadata<?>> interceptors, Set<Annotation> interceptorBindings) { checkModelNotBuilt(); InterceptionType weldInterceptionType = InterceptionType.valueOf(interceptionType); List<InterceptorClassMetadata<?>> interceptorsList = globalInterceptors.get(weldInterceptionType); if (interceptorsList == null) { interceptorsList = new ArrayList<>(); globalInterceptors.put(weldInterceptionType, interceptorsList); } interceptorsList.addAll(interceptors); intercept(weldInterceptionType, interceptors); if (constructor != null) { // WELD-1742 Associate constructor interceptor bindings memberInterceptorBindings.put(constructor, interceptorBindings); } }
public void interceptGlobal(javax.enterprise.inject.spi.InterceptionType interceptionType, Constructor<?> constructor, Collection<InterceptorClassMetadata<?>> interceptors, Set<Annotation> interceptorBindings) { checkModelNotBuilt(); InterceptionType weldInterceptionType = InterceptionType.valueOf(interceptionType); List<InterceptorClassMetadata<?>> interceptorsList = globalInterceptors.get(weldInterceptionType); if (interceptorsList == null) { interceptorsList = new ArrayList<>(); globalInterceptors.put(weldInterceptionType, interceptorsList); } interceptorsList.addAll(interceptors); intercept(weldInterceptionType, interceptors); if (constructor != null) { // WELD-1742 Associate constructor interceptor bindings memberInterceptorBindings.put(constructor, interceptorBindings); } }
public void interceptGlobal(javax.enterprise.inject.spi.InterceptionType interceptionType, Constructor<?> constructor, Collection<InterceptorClassMetadata<?>> interceptors, Set<Annotation> interceptorBindings) { checkModelNotBuilt(); InterceptionType weldInterceptionType = InterceptionType.valueOf(interceptionType); List<InterceptorClassMetadata<?>> interceptorsList = globalInterceptors.get(weldInterceptionType); if (interceptorsList == null) { interceptorsList = new ArrayList<>(); globalInterceptors.put(weldInterceptionType, interceptorsList); } interceptorsList.addAll(interceptors); intercept(weldInterceptionType, interceptors); if (constructor != null) { // WELD-1742 Associate constructor interceptor bindings memberInterceptorBindings.put(constructor, interceptorBindings); } }
public void interceptGlobal(javax.enterprise.inject.spi.InterceptionType interceptionType, Constructor<?> constructor, Collection<InterceptorClassMetadata<?>> interceptors, Set<Annotation> interceptorBindings) { checkModelNotBuilt(); InterceptionType weldInterceptionType = InterceptionType.valueOf(interceptionType); List<InterceptorClassMetadata<?>> interceptorsList = globalInterceptors.get(weldInterceptionType); if (interceptorsList == null) { interceptorsList = new ArrayList<>(); globalInterceptors.put(weldInterceptionType, interceptorsList); } interceptorsList.addAll(interceptors); intercept(weldInterceptionType, interceptors); if (constructor != null) { // WELD-1742 Associate constructor interceptor bindings memberInterceptorBindings.put(constructor, interceptorBindings); } }
Map<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> getMethodBoundInterceptors() { if (methodBoundInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> entry : methodBoundInterceptors.entrySet()) { ImmutableMap.Builder<Method, List<InterceptorClassMetadata<?>>> metadataBuilder = ImmutableMap.builder(); for (Entry<Method, List<InterceptorClassMetadata<?>>> metadataEntry : entry.getValue().entrySet()) { metadataBuilder.put(metadataEntry.getKey(), ImmutableList.copyOf(metadataEntry.getValue())); } builder.put(entry.getKey(), metadataBuilder.build()); } return builder.build(); }
Map<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> getMethodBoundInterceptors() { if (methodBoundInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> entry : methodBoundInterceptors.entrySet()) { ImmutableMap.Builder<Method, List<InterceptorClassMetadata<?>>> metadataBuilder = ImmutableMap.builder(); for (Entry<Method, List<InterceptorClassMetadata<?>>> metadataEntry : entry.getValue().entrySet()) { metadataBuilder.put(metadataEntry.getKey(), ImmutableList.copyOf(metadataEntry.getValue())); } builder.put(entry.getKey(), metadataBuilder.build()); } return builder.build(); }
Map<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> getMethodBoundInterceptors() { if (methodBoundInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> entry : methodBoundInterceptors.entrySet()) { ImmutableMap.Builder<Method, List<InterceptorClassMetadata<?>>> metadataBuilder = ImmutableMap.builder(); for (Entry<Method, List<InterceptorClassMetadata<?>>> metadataEntry : entry.getValue().entrySet()) { metadataBuilder.put(metadataEntry.getKey(), ImmutableList.copyOf(metadataEntry.getValue())); } builder.put(entry.getKey(), metadataBuilder.build()); } return builder.build(); }
Map<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> getMethodBoundInterceptors() { if (methodBoundInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> entry : methodBoundInterceptors.entrySet()) { ImmutableMap.Builder<Method, List<InterceptorClassMetadata<?>>> metadataBuilder = ImmutableMap.builder(); for (Entry<Method, List<InterceptorClassMetadata<?>>> metadataEntry : entry.getValue().entrySet()) { metadataBuilder.put(metadataEntry.getKey(), ImmutableList.copyOf(metadataEntry.getValue())); } builder.put(entry.getKey(), metadataBuilder.build()); } return builder.build(); }
Map<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> getMethodBoundInterceptors() { if (methodBoundInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> entry : methodBoundInterceptors.entrySet()) { ImmutableMap.Builder<Method, List<InterceptorClassMetadata<?>>> metadataBuilder = ImmutableMap.builder(); for (Entry<Method, List<InterceptorClassMetadata<?>>> metadataEntry : entry.getValue().entrySet()) { metadataBuilder.put(metadataEntry.getKey(), ImmutableList.copyOf(metadataEntry.getValue())); } builder.put(entry.getKey(), metadataBuilder.build()); } return builder.build(); }
Map<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> getMethodBoundInterceptors() { if (methodBoundInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> entry : methodBoundInterceptors.entrySet()) { ImmutableMap.Builder<Method, List<InterceptorClassMetadata<?>>> metadataBuilder = ImmutableMap.builder(); for (Entry<Method, List<InterceptorClassMetadata<?>>> metadataEntry : entry.getValue().entrySet()) { metadataBuilder.put(metadataEntry.getKey(), ImmutableList.copyOf(metadataEntry.getValue())); } builder.put(entry.getKey(), metadataBuilder.build()); } return builder.build(); }
Map<InterceptionType, List<InterceptorClassMetadata<?>>> getGlobalInterceptors() { if (globalInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, List<InterceptorClassMetadata<?>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, List<InterceptorClassMetadata<?>>> entry : globalInterceptors.entrySet()) { builder.put(entry.getKey(), ImmutableList.copyOf(entry.getValue())); } return builder.build(); }
Map<InterceptionType, List<InterceptorClassMetadata<?>>> getGlobalInterceptors() { if (globalInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, List<InterceptorClassMetadata<?>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, List<InterceptorClassMetadata<?>>> entry : globalInterceptors.entrySet()) { builder.put(entry.getKey(), ImmutableList.copyOf(entry.getValue())); } return builder.build(); }
Map<InterceptionType, List<InterceptorClassMetadata<?>>> getGlobalInterceptors() { if (globalInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, List<InterceptorClassMetadata<?>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, List<InterceptorClassMetadata<?>>> entry : globalInterceptors.entrySet()) { builder.put(entry.getKey(), ImmutableList.copyOf(entry.getValue())); } return builder.build(); }