Refine search
@Override protected Method getMethod(Object receiver) throws NoSuchMethodException { final Map<Class<?>, Method> methods = this.methods; Method method = this.methods.get(receiver.getClass()); if (method == null) { // the same method may be written to the map twice, but that is ok // lookupMethod is very slow Method delegate = getAnnotated().getJavaMember(); if ((hasDecorators() || MethodInjectionPointType.INITIALIZER.equals(type)) && (isPrivate(delegate) || isPackagePrivate(delegate.getModifiers()) && !Objects.equals(delegate.getDeclaringClass().getPackage(), receiver.getClass().getPackage()))) { // Initializer methods and decorated beans - overriding does not apply to private methods and package-private methods where the subclass is in a different package method = accessibleMethod; } else { method = SecurityActions.lookupMethod(receiver.getClass(), delegate.getName(), delegate.getParameterTypes()); SecurityActions.ensureAccessible(method); } final Map<Class<?>, Method> newMethods = ImmutableMap.<Class<?>, Method>builder().putAll(methods).put(receiver.getClass(), method).build(); this.methods = newMethods; } return method; }
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(); }
readObsoleteFileProperties( findPropertiesFiles(deployment, BOOTSTRAP_CONFIGURATION_FILE), ImmutableMap.<String, ConfigurationKey> builder().put("concurrentDeployment", ConfigurationKey.CONCURRENT_DEPLOYMENT) .put("preloaderThreadPoolSize", ConfigurationKey.PRELOADER_THREAD_POOL_SIZE).build()), BOOTSTRAP_CONFIGURATION_FILE); ImmutableMap.<String, ConfigurationKey> builder().put("threadPoolSize", ConfigurationKey.EXECUTOR_THREAD_POOL_SIZE) .put("threadPoolDebug", ConfigurationKey.EXECUTOR_THREAD_POOL_DEBUG) .put("threadPoolType", ConfigurationKey.EXECUTOR_THREAD_POOL_TYPE) .put("threadPoolKeepAliveTime", ConfigurationKey.EXECUTOR_THREAD_POOL_KEEP_ALIVE_TIME).build()), EXECUTOR_CONFIGURATION_FILE); merge(properties, ImmutableMap.<ConfigurationKey, Object>of(ConfigurationKey.RELAXED_CONSTRUCTION, true), UNSAFE_PROXIES_MARKER);
Map<Member, Set<Annotation>> getMemberInterceptorBindings() { return memberInterceptorBindings.build(); }
Map<Member, Set<Annotation>> getMemberInterceptorBindings() { return memberInterceptorBindings.build(); } }
Map<Member, Set<Annotation>> getMemberInterceptorBindings() { return memberInterceptorBindings.build(); }
Map<Member, Set<Annotation>> getMemberInterceptorBindings() { return memberInterceptorBindings.build(); }
Map<Member, Set<Annotation>> getMemberInterceptorBindings() { return memberInterceptorBindings.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); } }
Map<Member, Set<Annotation>> getMemberInterceptorBindings() { return memberInterceptorBindings.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 interceptMethod(javax.enterprise.inject.spi.InterceptionType interceptionType, Method method, Collection<InterceptorClassMetadata<?>> interceptors, Set<Annotation> interceptorBindings) { checkModelNotBuilt(); InterceptionType weldInterceptionType = InterceptionType.valueOf(interceptionType); if (weldInterceptionType.isLifecycleCallback()) { throw new IllegalArgumentException("Illegal interception type: " + interceptionType); } if (null == methodBoundInterceptors.get(weldInterceptionType)) { methodBoundInterceptors.put(weldInterceptionType, new HashMap<Method, List<InterceptorClassMetadata<?>>>()); } List<InterceptorClassMetadata<?>> interceptorsList = methodBoundInterceptors.get(weldInterceptionType).get(method); if (interceptorsList == null) { interceptorsList = new ArrayList<>(); methodBoundInterceptors.get(weldInterceptionType).put(method, interceptorsList); } interceptorsList.addAll(interceptors); intercept(weldInterceptionType, interceptors); if (interceptorBindings != null) { // WELD-1742 Associate method interceptor bindings memberInterceptorBindings.put(method, interceptorBindings); } }
public void interceptMethod(javax.enterprise.inject.spi.InterceptionType interceptionType, Method method, Collection<InterceptorClassMetadata<?>> interceptors, Set<Annotation> interceptorBindings) { checkModelNotBuilt(); InterceptionType weldInterceptionType = InterceptionType.valueOf(interceptionType); if (weldInterceptionType.isLifecycleCallback()) { throw new IllegalArgumentException("Illegal interception type: " + interceptionType); } if (null == methodBoundInterceptors.get(weldInterceptionType)) { methodBoundInterceptors.put(weldInterceptionType, new HashMap<>()); } List<InterceptorClassMetadata<?>> interceptorsList = methodBoundInterceptors.get(weldInterceptionType).get(method); if (interceptorsList == null) { interceptorsList = new ArrayList<>(); methodBoundInterceptors.get(weldInterceptionType).put(method, interceptorsList); } interceptorsList.addAll(interceptors); intercept(weldInterceptionType, interceptors); if (interceptorBindings != null) { // WELD-1742 Associate method interceptor bindings memberInterceptorBindings.put(method, interceptorBindings); } }
public void interceptMethod(javax.enterprise.inject.spi.InterceptionType interceptionType, Method method, Collection<InterceptorClassMetadata<?>> interceptors, Set<Annotation> interceptorBindings) { checkModelNotBuilt(); InterceptionType weldInterceptionType = InterceptionType.valueOf(interceptionType); if (weldInterceptionType.isLifecycleCallback()) { throw new IllegalArgumentException("Illegal interception type: " + interceptionType); } if (null == methodBoundInterceptors.get(weldInterceptionType)) { methodBoundInterceptors.put(weldInterceptionType, new HashMap<>()); } List<InterceptorClassMetadata<?>> interceptorsList = methodBoundInterceptors.get(weldInterceptionType).get(method); if (interceptorsList == null) { interceptorsList = new ArrayList<>(); methodBoundInterceptors.get(weldInterceptionType).put(method, interceptorsList); } interceptorsList.addAll(interceptors); intercept(weldInterceptionType, interceptors); if (interceptorBindings != null) { // WELD-1742 Associate method interceptor bindings memberInterceptorBindings.put(method, interceptorBindings); } }
public void interceptMethod(javax.enterprise.inject.spi.InterceptionType interceptionType, Method method, Collection<InterceptorClassMetadata<?>> interceptors, Set<Annotation> interceptorBindings) { checkModelNotBuilt(); InterceptionType weldInterceptionType = InterceptionType.valueOf(interceptionType); if (weldInterceptionType.isLifecycleCallback()) { throw new IllegalArgumentException("Illegal interception type: " + interceptionType); } if (null == methodBoundInterceptors.get(weldInterceptionType)) { methodBoundInterceptors.put(weldInterceptionType, new HashMap<>()); } List<InterceptorClassMetadata<?>> interceptorsList = methodBoundInterceptors.get(weldInterceptionType).get(method); if (interceptorsList == null) { interceptorsList = new ArrayList<>(); methodBoundInterceptors.get(weldInterceptionType).put(method, interceptorsList); } interceptorsList.addAll(interceptors); intercept(weldInterceptionType, interceptors); if (interceptorBindings != null) { // WELD-1742 Associate method interceptor bindings memberInterceptorBindings.put(method, interceptorBindings); } }
public void interceptMethod(javax.enterprise.inject.spi.InterceptionType interceptionType, Method method, Collection<InterceptorClassMetadata<?>> interceptors, Set<Annotation> interceptorBindings) { checkModelNotBuilt(); InterceptionType weldInterceptionType = InterceptionType.valueOf(interceptionType); if (weldInterceptionType.isLifecycleCallback()) { throw new IllegalArgumentException("Illegal interception type: " + interceptionType); } if (null == methodBoundInterceptors.get(weldInterceptionType)) { methodBoundInterceptors.put(weldInterceptionType, new HashMap<>()); } List<InterceptorClassMetadata<?>> interceptorsList = methodBoundInterceptors.get(weldInterceptionType).get(method); if (interceptorsList == null) { interceptorsList = new ArrayList<>(); methodBoundInterceptors.get(weldInterceptionType).put(method, interceptorsList); } interceptorsList.addAll(interceptors); intercept(weldInterceptionType, interceptors); if (interceptorBindings != null) { // WELD-1742 Associate method interceptor bindings memberInterceptorBindings.put(method, interceptorBindings); } }