Scope retrieves the scope associated with the given name. Returns the scope and a boolean indicating its existence.
(name string)
| 465 | // Scope retrieves the scope associated with the given name. |
| 466 | // Returns the scope and a boolean indicating its existence. |
| 467 | func (d *DefaultContainer) Scope(name string) (Scope, bool) { |
| 468 | d.muScopes.Lock() |
| 469 | defer d.muScopes.Unlock() |
| 470 | |
| 471 | if scope, ok := d.scopes[name]; ok { |
| 472 | return scope, true |
| 473 | } |
| 474 | |
| 475 | return nil, false |
| 476 | } |
| 477 | |
| 478 | // UsePreProcessor registers a PreProcessor to be applied before initialization. |
| 479 | func (d *DefaultContainer) UsePreProcessor(processor PreProcessor) error { |
no outgoing calls