Skip to content

[MNG-7103] Make VersionScheme a component#449

Closed
cstamas wants to merge 1 commit intoapache:masterfrom
cstamas:make-version-scheme-component
Closed

[MNG-7103] Make VersionScheme a component#449
cstamas wants to merge 1 commit intoapache:masterfrom
cstamas:make-version-scheme-component

Conversation

@cstamas
Copy link
Copy Markdown
Member

@cstamas cstamas commented Feb 20, 2021

MNG-7103: Instead to ad-hoc create the instance as needed, it is thread safe,
so is fine to have it shared across whole system.

Moreover, touched classes got converted from ancient plexus-field-like
injection to proper immutable components, something we really need
start doing.

Full conversion (of resolver classes) will become possible once ServiceLocator dropped
(see MRESOLVER-157).

Also, the idea of MNG-7104 that a "touched" (changed) class become refactored to ctor injection as well.

Instead to ad-hoc create the instance as needed, it is thread safe,
so is fine to have it shared across whole system.

Moreover, touched class got converted from ancient plexus-field-like
injection to proper immutable components, something we really need
start doing
Copy link
Copy Markdown
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one deserves a JIRA issue.

@cstamas cstamas changed the title Make VersionScheme a component [MNG-7103] Make VersionScheme a component Feb 20, 2021
*/
@Named
@Singleton
public class VersionSchemeProvider
Copy link
Copy Markdown
Member

@michael-o michael-o May 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this provider If GenericVersionScheme is properly annotated? Where is it used?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to review this and refresh my memory. But the idea was to have some sort of indirection, if we want to introduce other kind than "generic" version support... Consider this PR as draft pls

@michael-o michael-o marked this pull request as draft May 2, 2021 17:32
@cstamas cstamas marked this pull request as ready for review October 2, 2021 18:34
@cstamas
Copy link
Copy Markdown
Member Author

cstamas commented Oct 3, 2021

Obsolete, replaced by #563

@cstamas cstamas closed this Oct 3, 2021
@jira-importer
Copy link
Copy Markdown

Resolve #8346

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants