* Generate a universally unique binding key. * * Please note the format of they generated key is not specified, you must * not rely on any specific formatting (e.g. UUID style). * * @param namespace - Namespace for the binding
(namespace = '')
| 129 | * @param namespace - Namespace for the binding |
| 130 | */ |
| 131 | static generate<T>(namespace = ''): BindingKey<T> { |
| 132 | const prefix = namespace ? `${namespace}.` : ''; |
| 133 | const name = generateUniqueId(); |
| 134 | return BindingKey.create(`${prefix}${name}`); |
| 135 | } |
| 136 | } |
no test coverage detected