Skip to content

Presto Factory #4

@jacobemerick

Description

@jacobemerick

Seeing as how each instance of Presto should relate to a single request (and eventually spawn a single response) I've been finding it hard to use proper DI with the current structure. I'd like to build a client to handle the configuration and setup of individual requests on a per-method basis, which means I either need to construct Presto internally or have it passed into the method. If I could pass in an instantiated factory with some base configuration, than each method could pull a pre-configured Presto object from it, do additional configuration, and then make a request from that. Not quite DI, as there'd be new classes spawned within methods, but it would help with the flow quite a bit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions