* Get a binding address for retrieving a deep property of the object * bound to the current binding key. * * @param propertyPath - A dot-separated path to a (deep) property, e.g. "server.port".
(propertyPath: string)
| 56 | * @param propertyPath - A dot-separated path to a (deep) property, e.g. "server.port". |
| 57 | */ |
| 58 | deepProperty<PropertyValueType>(propertyPath: string) { |
| 59 | // TODO(bajtos) allow chaining of propertyPaths, e.g. |
| 60 | // BindingKey.create('config', 'rest').deepProperty('port') |
| 61 | // should create {key: 'config', path: 'rest.port'} |
| 62 | return BindingKey.create<PropertyValueType>(this.key, propertyPath); |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Validate the binding key format. Please note that `#` is reserved. |
no test coverage detected