Member Junction
    Preparing search index...

    Function resolveStorageDriver

    • Resolves the storage driver registered for a provider's ServerDriverKey and instantiates it.

      This is the ONE place a ServerDriverKey becomes a driver object. It exists because the failure mode it replaces was so expensive: ClassFactory.CreateInstance does not return null for an unregistered key — it falls back to the anchor base class — so an unresolvable key used to yield a FileStorageBase whose every method is undefined. Nothing complained until some distant subsystem called one, producing driver.GetObject is not a function with no mention of storage configuration, the provider, or the key. TryCreateInstance reports resolution EXPLICITLY, so a configuration problem is reported here, as a configuration problem, naming the key.

      Parameters

      Returns FileStorageBase

      A newly constructed, UNINITIALIZED driver — callers must still initialize() it.

      Error naming the provider, the unresolved ServerDriverKey, the keys that ARE registered, and how to fix it.