namespace sap.ui.mdc.util.PromiseCache

Visiblity: restricted
Available since: N/A
Module: sap/ui/mdc/util/PromiseCache
Application Component: CA-UI5-MDC

Provides a caching mechanism for promises. This API features Promise cancellation: resolve or reject handlers won't be called after removal of the promise, cache destruction or manual cancellation. Destroying the cache will cancel all registered promises and delete references. Convenience methods for promise creation, wrapping and replacement are offered.


Nodes Overview

Node Description

Methods Overview

Method Description
sap.ui.mdc.util.PromiseCache.extend

Creates a new subclass of class sap.ui.mdc.util.PromiseCache with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.base.Object.extend.

sap.ui.mdc.util.PromiseCache.getMetadata

Returns a metadata object for class sap.ui.mdc.util.PromiseCache.

sap.ui.mdc.util.PromiseCache.extend

Creates a new subclass of class sap.ui.mdc.util.PromiseCache with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.base.Object.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

sap.ui.mdc.util.PromiseCache.getMetadata

Returns a metadata object for class sap.ui.mdc.util.PromiseCache.

Param Type DefaultValue Description