Describes the model for resolving a service
function ComponentModel(key, impl, cfg) {
this.key = key
this.impl =impl
this._cfg = cfg || {}
this.inject = (this.impl.inject || [])
this.initializable = (this.impl.initializable || false)
this.startable = (this.impl.startable || false)
}
Option name | Type | Description |
---|---|---|
[val] | String | When provided, acts as a |
return | String | The key for the resolver to use |
get/set the resolver service key
ComponentModel.prototype.resolver = function(val) {
if(val) {
this._resolver = val
}
return this._resolver
}
Option name | Type | Description |
---|---|---|
[val] | String | When provided, acts as a |
return | String | The key for the activator to use |
get/set the activator service key
ComponentModel.prototype.activator = function(val) {
if(val) {
this._activator = val
}
return this._activator
}