Commit 99113070 authored by Brian Long's avatar Brian Long
Browse files

Merge branch 'develop-jersey' into stable-jersey

parents 477905aa e074296d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
 */
+7 −7
Original line number Diff line number Diff line
@@ -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