new bop.dt/js/api/SimpleBOPExtensionManager(simpleBOP)
stable API
Wraps an instance of SimpleBOP as an implementation of ExtensionManager.
It takes care of few aspects that you would have to do manually otherwise (resp. if implemented as pure BOP). In summary:
- No need to take care of ExtensionManager lifecycle manually.
- No need to write method generating RT code manually.
- No need to take care of BOPExtensionDependencyFormat to register only selected Entities and Properties into the Application Builder data model.
Parameters:
Name | Type | Description |
---|---|---|
simpleBOP |
bop/js/spi/SimpleBOP |
- Version:
- 17.1.1
- Source:
- See:
Example
define([
'bop.dt/js/api/SimpleBOPExtensionManager'
], function (
SimpleBOPExtensionManager
) {
var CustomBOP = function () {
};
CustomBOP.prototype.getEntityProviderPath = function () {
return '{{package}}/js/CustomEntityProvider';
};
CustomBOP.prototype.getOperationProviderPath = function () {
return '{{package}}/js/CustomOperationProvider';
};
return new SimpleBOPExtensionManager(new CustomBOP());
});