Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUACAMOLE-1932: Add no-arg constructor to fix guice error on guacamole-auth-json extension load. #962

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading