updated jersey comments/logging
This commit is contained in:
parent
2c15ce03a2
commit
3bcec23ddd
@ -16,7 +16,7 @@ package com.inteligr8.rs;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface defines additional configurations specific to the Jersey
|
* 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
|
* @author brian@inteligr8.com
|
||||||
*/
|
*/
|
||||||
|
@ -47,17 +47,17 @@ public class ClientJerseyImpl extends Client {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This method registers the Jersey library as the default provider for the
|
* This method registers the Jersey library as the default provider for the
|
||||||
* JAX-RS specification.
|
* Jakarta RS specification.
|
||||||
*/
|
*/
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
public void register() {
|
public void register() {
|
||||||
if (RuntimeDelegate.getInstance() == null) {
|
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());
|
RuntimeDelegate.setInstance(new RuntimeDelegateImpl());
|
||||||
} else if (RuntimeDelegate.getInstance() instanceof 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 {
|
} 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());
|
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
|
* This method retrieves a Jakarta RS implementation of the specified API
|
||||||
* the specified authorization.
|
* with the specified authorization.
|
||||||
*
|
*
|
||||||
* @param authFilter A dynamic authorization filter.
|
* @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.
|
* @return An instance of the API class.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user