MCPcopy Create free account
hub / github.com/codnect/procyon / IsSingleton

Method IsSingleton

component/definition.go:67–69  ·  view source on GitHub ↗

IsSingleton returns true if the definition is a singleton-scoped component.

()

Source from the content-addressed store, hash-verified

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

Callers 2

TestMakeDefinitionFunction · 0.80
ResolveMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestMakeDefinitionFunction · 0.64