public AbstractDeployment(BeanDeploymentArchive... beanDeploymentArchives) { this(asList(beanDeploymentArchives), ServiceLoader.load(Extension.class)); }
public AbstractDeployment(BeanDeploymentArchive... beanDeploymentArchives) { this(asList(beanDeploymentArchives), ServiceLoader.load(Extension.class)); }
/** * Creates a new service loader for the given service type, using the current * thread's context class loader. * * An invocation of this convenience method of the form * * {@code ServiceLoader.load(service)</code>} * * is equivalent to * * <code>ServiceLoader.load(service, * Thread.currentThread().getContextClassLoader())</code> * * @param service The interface or abstract class representing the service * @return A new service loader */ public static <S> ServiceLoader<S> load(Class<S> service) { return load(service, Thread.currentThread().getContextClassLoader()); }
/** * Creates a new service loader for the given service type, using the current * thread's context class loader. * * An invocation of this convenience method of the form * * {@code ServiceLoader.load(service)</code>} * * is equivalent to * * <code>ServiceLoader.load(service, * Thread.currentThread().getContextClassLoader())</code> * * @param service The interface or abstract class representing the service * @return A new service loader */ public static <S> ServiceLoader<S> load(Class<S> service) { return load(service, Thread.currentThread().getContextClassLoader()); }