Skip to content

Deprecate Builder classes #355

@mscwilson

Description

Configuration classes were added in #340, along with the Snowplow class. The Config classes plus Snowplow static methods provide an easy-to-use API (fluent interface). However, this essentially duplicates the Builder classes found across the codebase, eg TrackerBuilder. It's no longer necessary to create Tracker, BatchEmitter, or Subject objects manually as the Config classes can be used instead.

In other classes, such as HttpClientAdapter, Builder classes are included even though only a few variables are involved.

Therefore, the builder methods can be deprecated to simplify the API and the readability/maintainability of the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:completedCompleted - but might not be released yet.type:enhancementNew features or improvements to existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions