IsSingleton returns true if the definition is a singleton-scoped component.
()
| 65 | |
| 66 | // IsSingleton returns true if the definition is a singleton-scoped component. |
| 67 | func (d *Definition) IsSingleton() bool { |
| 68 | return d.scope == SingletonScope |
| 69 | } |
| 70 | |
| 71 | // IsPrototype returns true if the definition is a prototype-scoped component. |
| 72 | func (d *Definition) IsPrototype() bool { |
no outgoing calls