Skip to content

Commit

Permalink
GUACAMOLE-1932: Add no-arg constructor to fix guice error on guacamol…
Browse files Browse the repository at this point in the history
…e-auth-json extension load.
  • Loading branch information
jmuehlner committed Mar 19, 2024
1 parent 6119c85 commit af7b640
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,21 @@ public class RequestValidationService {
* Service for retrieving configuration information regarding the
* JSONAuthenticationProvider.
*/
@Inject
private ConfigurationService confService;

/**
* Create a new instance of the request validation service, with the
* provided ConfigurationService object used to retrieve configuration
* properties for this extension.
* Create a new RequestValidationService instance.
*/
public RequestValidationService() {}

/**
* Constructor that enables passing of an instance of
* ConfigurationService. (Only used for unit testing)
*
* @param confService
* The instance of ConfigurationService for retrieving configuration
* properties for this extension.
* The (mock) instance of ConfigurationService
*/
@Inject
public RequestValidationService(ConfigurationService confService) {
this.confService = confService;
}
Expand Down

0 comments on commit af7b640

Please sign in to comment.