protected void createInterceptors(InterceptorFactoryContext context) { // Create the post-construct interceptors for the ComponentInstance postConstructInterceptor = this.postConstruct.create(context); // create the pre-destroy interceptors preDestroyInterceptor = this.getPreDestroy().create(context); final Map<Method, InterceptorFactory> interceptorFactoryMap = this.getInterceptorFactoryMap(); // This is an identity map. This means that only <b>certain</b> {@code Method} objects will // match - specifically, they must equal the objects provided to the proxy. final IdentityHashMap<Method, Interceptor> interceptorMap = new IdentityHashMap<Method, Interceptor>(); for (Method method : interceptorFactoryMap.keySet()) { interceptorMap.put(method, interceptorFactoryMap.get(method).create(context)); } this.interceptorInstanceMap = interceptorMap; }
protected void createInterceptors(InterceptorFactoryContext context) { // Create the post-construct interceptors for the ComponentInstance postConstructInterceptor = this.postConstruct.create(context); // create the pre-destroy interceptors preDestroyInterceptor = this.getPreDestroy().create(context); final Map<Method, InterceptorFactory> interceptorFactoryMap = this.getInterceptorFactoryMap(); // This is an identity map. This means that only <b>certain</b> {@code Method} objects will // match - specifically, they must equal the objects provided to the proxy. final IdentityHashMap<Method, Interceptor> interceptorMap = new IdentityHashMap<Method, Interceptor>(); for (Method method : interceptorFactoryMap.keySet()) { interceptorMap.put(method, interceptorFactoryMap.get(method).create(context)); } this.interceptorInstanceMap = interceptorMap; }
protected void createInterceptors(InterceptorFactoryContext context) { // Create the post-construct interceptors for the ComponentInstance postConstructInterceptor = this.postConstruct.create(context); // create the pre-destroy interceptors preDestroyInterceptor = this.getPreDestroy().create(context); final Map<Method, InterceptorFactory> interceptorFactoryMap = this.getInterceptorFactoryMap(); // This is an identity map. This means that only <b>certain</b> {@code Method} objects will // match - specifically, they must equal the objects provided to the proxy. final IdentityHashMap<Method, Interceptor> interceptorMap = new IdentityHashMap<Method, Interceptor>(); for (Method method : interceptorFactoryMap.keySet()) { interceptorMap.put(method, interceptorFactoryMap.get(method).create(context)); } this.interceptorInstanceMap = interceptorMap; }
final Map<Method, InterceptorFactory> interceptorFactoryMap = this.getInterceptorFactoryMap();