API Docs for:
Show:

CSSNotificationStrategyFactory Class

Defined in: css_notify.js:73
Module: CSSNotification

Factory class creates objects of the correct strategy class depending on the identifier passed to the constructor, and the implementation of the getStrategyName() method.

Typical Usage

var class_factory = new CSSNotificationStrategyFactory("gecko");
var strategy_class = class_factory.newStrategyObject();

// By default, the type would be CSSNotificationGeckoStrategy
// If this class did not exist, the object type would default to CSSNotificationBasicStrategy
console.log("The returned object is of type: " + strategy_class.constructor );

Constructor

CSSNotificationStrategyFactory

()

Defined in css_notify.js:73

Item Index