2.8.24 • Published 3 years ago
@hoaphat/node-dependency-injection v2.8.24
node-dependency-injection
fork of origin https://www.npmjs.com/package/node-dependency-injection with custom code
npm i @hoaphat/node-dependency-injection
Additional features
- Cancel register same bean by
id
, graceful return nothing - Added
container.clear()
to clear all beans+definitions+alias - Added
container.bootstrap()
to allow eager load all beans - Added
container.asyncBootstrap()
async version of funcbootstrap
- Added
container.registerSyntheticAndSet(id, instance)
to do "remove-then-set" synthetic-instance - Added
container.waitAndGet(id, opts)
to do "wait-for-async-bean" be ready - Added
container.getOrDefault(id, defaults)
to do return default-value if no bean existing instead of throw error
2.8.19
3 years ago
2.8.23
3 years ago
2.8.21
3 years ago
2.8.20
3 years ago
2.8.24
3 years ago
2.8.18
3 years ago
2.8.16
3 years ago
2.8.15
3 years ago
2.8.14
3 years ago
2.8.13
3 years ago
2.8.12
3 years ago
2.8.11
3 years ago
2.8.10
3 years ago
2.8.9
3 years ago
2.8.8
3 years ago
2.8.7
3 years ago
2.8.6
3 years ago
2.8.5
3 years ago
2.8.4
3 years ago
2.8.3
3 years ago
2.8.2
3 years ago
2.8.1
3 years ago
2.8.0
3 years ago