updated jersey comments/logging

This commit is contained in:
Brian Long 2025-03-03 09:06:52 -05:00
parent 2c15ce03a2
commit 3bcec23ddd
2 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ package com.inteligr8.rs;
/**
* This interface defines additional configurations specific to the Jersey
* JAX-RS library and its nuances.
* Jakarta RS library and its nuances.
*
* @author brian@inteligr8.com
*/

View File

@ -47,17 +47,17 @@ public class ClientJerseyImpl extends Client {
/**
* This method registers the Jersey library as the default provider for the
* JAX-RS specification.
* Jakarta RS specification.
*/
@PostConstruct
public void register() {
if (RuntimeDelegate.getInstance() == null) {
this.logger.info("Setting JAX-RS runtime delegate to the Jersey library");
this.logger.info("Setting Jakarta RS runtime delegate to the Jersey library");
RuntimeDelegate.setInstance(new RuntimeDelegateImpl());
} else if (RuntimeDelegate.getInstance() instanceof RuntimeDelegateImpl) {
this.logger.info("JAX-RS runtime delegate already the Jersey library");
this.logger.info("Jakarta RS runtime delegate already the Jersey library");
} else {
this.logger.warn("Setting JAX-RS runtime delegate to the Jersey library; was: " + RuntimeDelegate.getInstance().getClass().getName());
this.logger.warn("Setting Jakarta RS runtime delegate to the Jersey library; was: " + RuntimeDelegate.getInstance().getClass().getName());
RuntimeDelegate.setInstance(new RuntimeDelegateImpl());
}
@ -86,11 +86,11 @@ public class ClientJerseyImpl extends Client {
}
/**
* This method retrieves a JAX-RS implementation of the specified API with
* the specified authorization.
* This method retrieves a Jakarta RS implementation of the specified API
* with the specified authorization.
*
* @param authFilter A dynamic authorization filter.
* @param apiClass A JAX-RS annotation API class.
* @param apiClass A Jakarta RS annotation API class.
* @return An instance of the API class.
*/
@Override