Skip to content

Service Loading Example#225

Open
zack-rma wants to merge 13 commits intomainfrom
feature/service-loading-example
Open

Service Loading Example#225
zack-rma wants to merge 13 commits intomainfrom
feature/service-loading-example

Conversation

@zack-rma
Copy link
Contributor

@zack-rma zack-rma commented Feb 26, 2026

Description

Example implementation of service loader for solver-like test classes.

Motivation and Context

Provides examples to resolve #214

More information about the Netbeans Lookup API can be found here:
NetBeans Lookup.

See more about global singletons here:
Default Lookup.

Types of changes

Yes/No Pull Request Type Description
Bug fix non-breaking change which fixes an issue
New feature non-breaking change which adds functionality
Breaking change fix or feature that would cause existing functionality to change
Documentation change non-breaking change which modifies or updates documentation
New tests new unit tests, test scenarios, or test case documentation
Triggers regression testing change affects downstream modules and will require regression testing
Y Other Example implementation

Notes for Reviewers

Please consider the following when reviewing this PR:

  • Correctness: Does the code do what it claims? Are edge cases handled appropriately?
  • Clarity: Is the code readable, maintainable and aligned with SOLID design principles?
  • Impact: Will this change affect other parts of the system? Any potential regressions?
  • Testing: Are the test cases sufficient and appropriate? Are there gaps in coverage?
  • Documentation: Does this require updates to code comments, README, or other docs?

@zack-rma zack-rma added the enhancement New feature or request label Feb 26, 2026
@zack-rma zack-rma moved this to In Progress in WRIMS 3 Development Feb 26, 2026
@zack-rma zack-rma requested a review from rma-psmorris March 9, 2026 18:30
@zack-rma zack-rma moved this from In Progress to Needs Review in WRIMS 3 Development Mar 9, 2026
@zack-rma zack-rma marked this pull request as ready for review March 9, 2026 18:30
@zack-rma zack-rma force-pushed the feature/service-loading-example branch from 7f5f4bd to 29a3fc4 Compare March 13, 2026 20:05

import java.util.UUID;

public interface Solver

Choose a reason for hiding this comment

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

this interface should not be in the implementation package as it cannot be depended on by the application

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved to service package

import java.util.Map;
import java.util.UUID;

import gov.ca.water.wrims.engine.core.solver.solvers.Solver;
Copy link

@rma-psmorris rma-psmorris Mar 18, 2026

Choose a reason for hiding this comment

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

This test should have no dependencies onto the solver package as that is service implementation only

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed dependencies

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@adamkorynta
Copy link

@zack-rma this looks good to me

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

Labels

enhancement New feature or request

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

Service Loading Implementation Investigation

3 participants