public class ServiceLocatorUtils extends java.lang.Object
|Modifier and Type||Method and Description|
Go thru the environment locator options in the following order: weblogic.server.GlobalServiceLocator; org.glassfish.hk2.utilities.ServiceLocatorUtilities::createAndPopulate("weblogic"); and finally the same, but with "default".
public static java.lang.Object findOrCreateServiceLocatorAsObject()
If for some reason option 1 isn't there (find only), the most likely return will be the 2nd option found or populated. If that's not possible, then the 3rd option found or populated will be returned. If all three attempts fail, then a throw of an IllegalStateException with the last exception as the cause, and all others will be in the suppressed collection.
java.lang.IllegalStateException- if no locator could be found that's able to find or create a com.oracle.jrf.mt.tenant.runtime.TenantContextFactory. The exception thrown could have both cause and suppressed exceptions.