NewAttributeFactory returns a default AttributeFactory which is produces Attribute values capable of resolving types by simple names and qualify the values using the supported qualifier types: bool, int, string, and uint.
(cont *containers.Container, a types.Adapter, p types.Provider, opts ...AttrFactoryOption)
| 142 | // capable of resolving types by simple names and qualify the values using the supported qualifier |
| 143 | // types: bool, int, string, and uint. |
| 144 | func NewAttributeFactory(cont *containers.Container, a types.Adapter, p types.Provider, opts ...AttrFactoryOption) AttributeFactory { |
| 145 | fac := &attrFactory{ |
| 146 | container: cont, |
| 147 | adapter: a, |
| 148 | provider: p, |
| 149 | } |
| 150 | for _, o := range opts { |
| 151 | fac = o(fac) |
| 152 | } |
| 153 | return fac |
| 154 | } |
| 155 | |
| 156 | type attrFactory struct { |
| 157 | container *containers.Container |
no outgoing calls