| Package | Description |
|---|---|
| org.apache.hadoop.util.dynamic |
Dynamic class loading and instantiation.
|
| Modifier and Type | Class | Description |
|---|---|---|
static class |
DynConstructors.Ctor<C> |
| Modifier and Type | Method | Description |
|---|---|---|
DynMethods.UnboundMethod |
DynMethods.Builder.build() |
Returns the first valid implementation as a UnboundMethod or throws a
RuntimeError if there is none.
|
DynMethods.UnboundMethod |
DynMethods.Builder.buildChecked() |
Returns the first valid implementation as a UnboundMethod or throws a
NoSuchMethodException if there is none.
|
static <T> DynMethods.UnboundMethod |
BindingUtils.loadInvocation(java.lang.Class<?> source,
java.lang.Class<? extends T> returnType,
java.lang.String name,
java.lang.Class<?>... parameterTypes) |
Get an invocation from the source class, which will be unavailable() if
the class is null or the method isn't found.
|
static <T> DynMethods.UnboundMethod |
BindingUtils.loadStaticMethod(java.lang.Class<?> source,
java.lang.Class<? extends T> returnType,
java.lang.String name,
java.lang.Class<?>... parameterTypes) |
Load a static method from the source class, which will be a noop() if
the class is null or the method isn't found.
|
static DynMethods.UnboundMethod |
BindingUtils.noop(java.lang.String name) |
Create a no-op method.
|
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
BindingUtils.available(DynMethods.UnboundMethod method) |
Is a method available?
|
static void |
BindingUtils.checkAvailable(DynMethods.UnboundMethod method) |
Require a method to be available.
|
static boolean |
BindingUtils.implemented(DynMethods.UnboundMethod... methods) |
Given a sequence of methods, verify that they are all available.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.