public final class FailoverLoader extends Loader
| Constructor and Description |
|---|
FailoverLoader() |
| Modifier and Type | Method and Description |
|---|---|
Binding<?> |
getAtInjectBinding(String key,
String className,
ClassLoader classLoader,
boolean mustHaveInjections)
Returns a binding that uses
@Inject annotations, or null if no valid binding can
be found or created. |
<T> ModuleAdapter<T> |
getModuleAdapter(Class<T> type)
Obtains a module adapter for
module from the first responding resolver. |
StaticInjection |
getStaticInjection(Class<?> injectedClass)
Returns the static injection for
injectedClass. |
instantiate, loadClasspublic <T> ModuleAdapter<T> getModuleAdapter(Class<T> type)
module from the first responding resolver.getModuleAdapter in class Loaderpublic Binding<?> getAtInjectBinding(String key, String className, ClassLoader classLoader, boolean mustHaveInjections)
Loader@Inject annotations, or null if no valid binding can
be found or created.getAtInjectBinding in class Loaderpublic StaticInjection getStaticInjection(Class<?> injectedClass)
LoaderinjectedClass.getStaticInjection in class LoaderCopyright © 2024 Square, Inc.. All rights reserved.