public class Initialization extends Object
Constructor and Description |
---|
Initialization() |
Modifier and Type | Method and Description |
---|---|
static io.tesla.aether.internal.DefaultTeslaAether |
getAetherClient(ExtensionsConfig config) |
static URLClassLoader |
getClassLoaderForCoordinates(io.tesla.aether.TeslaAether aether,
String coordinate,
String defaultVersion) |
static <T> Collection<T> |
getFromExtensions(ExtensionsConfig config,
Class<T> clazz)
Look for extension modules for the given class from both classpath and druid.extensions.coordinates.
|
static <T> Set<T> |
getLoadedModules(Class<T> clazz) |
static com.google.inject.Injector |
makeInjectorWithModules(com.google.inject.Injector baseInjector,
Iterable<? extends com.google.inject.Module> modules) |
public static <T> Set<T> getLoadedModules(Class<T> clazz)
T
- clazz
- Module classpublic static <T> Collection<T> getFromExtensions(ExtensionsConfig config, Class<T> clazz)
config
- Extensions configurationclazz
- The class of extension module (e.g., DruidModule)public static URLClassLoader getClassLoaderForCoordinates(io.tesla.aether.TeslaAether aether, String coordinate, String defaultVersion) throws org.eclipse.aether.resolution.DependencyResolutionException, MalformedURLException
org.eclipse.aether.resolution.DependencyResolutionException
MalformedURLException
public static io.tesla.aether.internal.DefaultTeslaAether getAetherClient(ExtensionsConfig config)
public static com.google.inject.Injector makeInjectorWithModules(com.google.inject.Injector baseInjector, Iterable<? extends com.google.inject.Module> modules)
Copyright © 2011–2015. All rights reserved.