this.viewInterceptors = new IdentityHashMap<Method, Interceptor>();
this.methods = new HashMap<MethodDescription, Method>();
}
void initializeInterceptors() {
final SimpleInterceptorFactoryContext factoryContext = new SimpleInterceptorFactoryContext();
final Map<Method, InterceptorFactory> viewInterceptorFactories = ViewService.this.viewInterceptorFactories;
final Map<Method, Interceptor> viewEntryPoints = viewInterceptors;
factoryContext.getContextData().put(Component.class, component);
//we don't have this code in the constructor so we avoid passing around
//a half constructed instance
factoryContext.getContextData().put(ComponentView.class, this);
for (Method method : viewInterceptorFactories.keySet()) {
viewEntryPoints.put(method, viewInterceptorFactories.get(method).create(factoryContext));
methods.put(new MethodDescription(method.getName(), DescriptorUtils.methodDescriptor(method)), method);
}