Create a factory for the given protocol.
It sets the protocol
attribute and returns the constructed
factory instance.
Parameters | protocol | A Protocol
subclass |
| args | Positional arguments for the factory. |
| kwargs | Keyword arguments for the factory. |
Returns | A Factory
instance wired up to protocol . |