ConditionalLoader loads component definitions into a container only if their associated runtime conditions are satisfied.
| 30 | // ConditionalLoader loads component definitions into a container |
| 31 | // only if their associated runtime conditions are satisfied. |
| 32 | type ConditionalLoader struct { |
| 33 | container Container |
| 34 | components []*Component |
| 35 | evaluator *conditionEvaluator |
| 36 | } |
| 37 | |
| 38 | // NewConditionalLoader creates a ConditionalLoader with the given container and components. |
| 39 | func NewConditionalLoader(container Container, components []*Component) *ConditionalLoader { |
nothing calls this directly
no outgoing calls
no test coverage detected