code: function (interfaceMethods, interceptor, allInterceptors) {
          var interceptedMethods = allInterceptors || {};
          // for a callback, intercept all methods of an interface
          for (var i in interfaceMethods) {
              if (interfaceMethods.hasOwnProperty(i)) {
                  (interceptedMethods[i] || (interceptedMethods[i] = [])).push(interceptor);
              }
          }
          return interceptedMethods;
      }
docs: Adds an interceptor to all methods.
  @param {Object} interfaceMethods all methods for the interface
  @param {aria.core.CfgBeans:Callback} interceptor a callback which will receive notifications
  @return {Object} interceptedMethods