GUACAMOLE-1851: Add Inject notation to RequestValidationService constructor to fix Guice loading.

This commit is contained in:
Virtually Nick
2023-08-29 17:19:26 -04:00
parent 9f3b50d15e
commit 0a031c80a1

View File

@@ -42,16 +42,18 @@ public class RequestValidationService {
* Service for retrieving configuration information regarding the * Service for retrieving configuration information regarding the
* JSONAuthenticationProvider. * JSONAuthenticationProvider.
*/ */
@Inject
private ConfigurationService confService; private ConfigurationService confService;
/** /**
* Constructor that enables passing of an instance of * Create a new instance of the request validation service, with the
* ConfigurationService. (Only used for unit testing) * provided ConfigurationService object used to retrieve configuration
* properties for this extension.
* *
* @param confService * @param confService
* The (mock) instance of ConfigurationService * The instance of ConfigurationService for retrieving configuration
* properties for this extension.
*/ */
@Inject
public RequestValidationService(ConfigurationService confService) { public RequestValidationService(ConfigurationService confService) {
this.confService = confService; this.confService = confService;
} }