benchmarks/scenarios/ember.js
function Registry(options) {
    this.fallback = options && options.fallback ? options.fallback : null;

    if (options && options.resolver) {
      this.resolver = options.resolver;

      if (typeof this.resolver === 'function') {
        deprecateResolverFunction(this);
      }
    }

    this.registrations = _emberMetalDictionary.default(options && options.registrations ? options.registrations : null);

    this._typeInjections = _emberMetalDictionary.default(null);
    this._injections = _emberMetalDictionary.default(null);
    this._factoryTypeInjections = _emberMetalDictionary.default(null);
    this._factoryInjections = _emberMetalDictionary.default(null);

    this._localLookupCache = new _emberMetalEmpty_object.default();
    this._normalizeCache = _emberMetalDictionary.default(null);
    this._resolveCache = _emberMetalDictionary.default(null);
    this._failCache = _emberMetalDictionary.default(null);

    this._options = _emberMetalDictionary.default(null);
    this._typeOptions = _emberMetalDictionary.default(null);
  }
function Registry(options) {
    this.fallback = options && options.fallback ? options.fallback : null;

    if (options && options.resolver) {
      this.resolver = options.resolver;

      if (typeof this.resolver === 'function') {
        deprecateResolverFunction(this);
      }
    }

    this.registrations = _emberMetalDictionary.default(options && options.registrations ? options.registrations : null);

    this._typeInjections = _emberMetalDictionary.default(null);
    this._injections = _emberMetalDictionary.default(null);
    this._factoryTypeInjections = _emberMetalDictionary.default(null);
    this._factoryInjections = _emberMetalDictionary.default(null);

    this._localLookupCache = new _emberMetalEmpty_object.default();
    this._normalizeCache = _emberMetalDictionary.default(null);
    this._resolveCache = _emberMetalDictionary.default(null);
    this._failCache = _emberMetalDictionary.default(null);

    this._options = _emberMetalDictionary.default(null);
    this._typeOptions = _emberMetalDictionary.default(null);
  }
function Registry ( options ) { this . fallback = options && options . fallback ? options . fallback : null ; if ( options && options . resolver ) { this . resolver = options . resolver ; if ( typeof this . resolver === 'function' ) { deprecateResolverFunction ( this ) ; } } this . registrations = _emberMetalDictionary . default ( options && options . registrations ? options . registrations : null ) ; this . _typeInjections = _emberMetalDictionary . default ( null ) ; this . _injections = _emberMetalDictionary . default ( null ) ; this . _factoryTypeInjections = _emberMetalDictionary . default ( null ) ; this . _factoryInjections = _emberMetalDictionary . default ( null ) ; this . _localLookupCache = new _emberMetalEmpty_object . default ( ) ; this . _normalizeCache = _emberMetalDictionary . default ( null ) ; this . _resolveCache = _emberMetalDictionary . default ( null ) ; this . _failCache = _emberMetalDictionary . default ( null ) ; this . _options = _emberMetalDictionary . default ( null ) ; this . _typeOptions = _emberMetalDictionary . default ( null ) ; }
A registry used to store factory and option information keyed
by type.

A `Registry` stores the factory and option information needed by a
`Container` to instantiate and cache objects.

The API for `Registry` is still in flux and should not be considered stable.

@private
@class Registry
@since 1.11.0
A registry used to store factory and option information keyed by type .