/** * This method is often the first line of a stand-alone client that wishes to use HK2. * It creates a ServiceLocator with a randomly generated name and then populates that * service locator with services found in the META-INF/hk2-locator/default files that * can be found with the classloader that loaded HK2 (usually the system classloader). * * @return A service locator that has been populated with services * @throws MultiException If there was a failure when populating or creating the ServiceLocator */ public static ServiceLocator createAndPopulateServiceLocator() { return createAndPopulateServiceLocator(null); }
/** * This method is often the first line of a stand-alone client that wishes to use HK2. * It creates a ServiceLocator with a randomly generated name and then populates that * service locator with services found in the META-INF/hk2-locator/default files that * can be found with the classloader that loaded HK2 (usually the system classloader). * * @return A service locator that has been populated with services * @throws MultiException If there was a failure when populating or creating the ServiceLocator */ public static ServiceLocator createAndPopulateServiceLocator() { return createAndPopulateServiceLocator(null); }
/** * This method is often the first line of a stand-alone client that wishes to use HK2. * It creates a ServiceLocator with a randomly generated name and then populates that * service locator with services found in the META-INF/hk2-locator/default files that * can be found with the classloader that loaded HK2 (usually the system classloader). * * @return A service locator that has been populated with services * @throws MultiException If there was a failure when populating or creating the ServiceLocator */ public static ServiceLocator createAndPopulateServiceLocator() { return createAndPopulateServiceLocator(null); }
/** * This method is often the first line of a stand-alone client that wishes to use HK2. * It creates a ServiceLocator with a randomly generated name and then populates that * service locator with services found in the META-INF/hk2-locator/default files that * can be found with the classloader that loaded HK2 (usually the system classloader). * * @return A service locator that has been populated with services * @throws MultiException If there was a failure when populating or creating the ServiceLocator */ public static ServiceLocator createAndPopulateServiceLocator() { return createAndPopulateServiceLocator(null); }