public final class Provider
extends java.lang.Object
// Initialize a static variable using reflection.
static final Foo foo = Provider.newInstance("Foo", new NoopFoo());
| Constructor and Description |
|---|
Provider() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
newInstance(java.lang.String name,
T defaultValue)
Returns a new instance of the class specified with
name by invoking the empty-argument
constructor via reflections. |