DependsOn class
Names beans that must be created before this one and destroyed after it.
The container already orders beans by their injected dependencies. Use this only for a dependency it cannot see: a bean that relies on another bean's side effect (a database schema created, a global set up) without injecting it.
@Component()
@DependsOn(['connection'])
class Migrations {
Migrations() {
// runs after the `connection` bean was created
}
}
Spring (Java):
@Component
@DependsOn("connection")
class Migrations { ... }
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited