Class DriverManager
- Requires:
- Class
- DriverAbstract
- Defined in:
- DriverManager.js
Driver Manager Responsible for managing drivers (creating, adding, fetching).
Constructor
Static Fields
| Field | |
|---|---|
|
DriverManager.ERROR
[constant]
|
|
|
DriverManager.LOADED
[constant]
|
Static Methods
| Method | |
|---|---|
|
DriverManager.createDriver(driverClassName, mixed)
Factory method - createing new drivers of given driverClassName.
|
Methods
| Method | |
|---|---|
|
addDriver(driver)
Adds a driver to collection
|
|
|
fetch()
Loads model from each added driver.
|
Static Field Details
DriverManager.ERROR
[constant]
DriverManager.LOADED
[constant]
Static Method Details
Factory method - createing new drivers of given driverClassName.
| Parameters (optional) | ||
|---|---|---|
| driverClassName | {String} | Name of a driver class. |
| mixed | data Data passed to the driver's constructor | |
- Throws:
- {DriverManager.Exception.DRIVER_DOES_NOT_EXIST} if given driver class name cannot be resolved.
- Returns:
- {DriverAbstract}
Method Details
addDriver(driver)
:{boolean}
Adds a driver to collection
| Parameters (optional) | ||
|---|---|---|
| driver | {DriverAbstract} | Driver instance. |
- Throws:
- {DriverManager.Exception.WRONG_INSTANCE} if given driver is not an instance of DriverAbstract class.
- Returns:
- {boolean} Returns {false} if given driver is arledy in collection otherwise returns {true}
fetch()
Loads model from each added driver. See: DriverAbstract#load
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Aug 17 2011 15:33:33 GMT+0200 (CEST)