Class Summary
The API provides mechanisms to individually load specific features like "routing" or "search".
Each of the features may exist in different implementations for different target environments.
A feature implementation is a set of classes that enable certain functionality and which can
be loaded to enrich the functionality.
By default the API loads all possible features in the optimal implementation for the environment
in which it runs. However, the loading of certain features may also be deferred by explicitly
disallowing certain or all features at page load time. This may reduce the initial page load
time as not all of the API's code is transferred and executed during the page's start up.
The Features object provides the infrastructure to load individual features of the API manually
in a deferred way. It automatically resolves dependencies between features and provides mechanisms
to detect the best feature implementation for the current environment.
The Features object is a static object that is not to be instantiated. Instead use it
Method Summary
static
add
(featureName, featureImplName, loadPath, [detector, [dependencies, [onLoadCallback, [charset]]]])
Adds a new feature implementation definition to the feature registry.
static
get
(featureName, [featureImplName])
Retrieves a feature implementation definition object for a specified feature.
static
getFeatureMap
()
Returns a map of registered feature implementation names per feature.
static
getLoadedMap
()
Returns a map of the names of fully loaded feature implementations per feature.
static
isLoaded
(featureName, featureImplName)
: Boolean
Checks whether a certain feature implementation has been successfully loaded.
static
load
(requested, [onSuccess, [onError, [doc, [sync]]]])
Loads a set of specified features.
Constructor Detail
The API provides mechanisms to individually load specific features like "routing" or "search".
Each of the features may exist in different implementations for different target environments.
A feature implementation is a set of classes that enable certain functionality and which can
be loaded to enrich the functionality.
By default the API loads all possible features in the optimal implementation for the environment
in which it runs. However, the loading of certain features may also be deferred by explicitly
disallowing certain or all features at page load time. This may reduce the initial page load
time as not all of the API's code is transferred and executed during the page's start up.
The Features object provides the infrastructure to load individual features of the API manually
in a deferred way. It automatically resolves dependencies between features and provides mechanisms
to detect the best feature implementation for the current environment.
The Features object is a static object that is not to be instantiated. Instead use it
nokia.Features()
Method Detail
static
add
(featureName, featureImplName, loadPath, [detector, [dependencies, [onLoadCallback, [charset]]]])
static
get
(featureName, [featureImplName])
static
isLoaded
(featureName, featureImplName)
: Boolean
static
load
(requested, [onSuccess, [onError, [doc, [sync]]]])
Documentation generated on Mon Oct 24 2011 14:24:29 GMT+0200 (CEST).