public class ReflectionUtils extends Object
Constructor and Description |
---|
ReflectionUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
newInstance(Class<T> klass) |
static <T> T |
newInstance(Class<T> klass,
Map<String,Object> conf) |
static <T> T |
newInstance(String klass) |
static <T> T |
newInstance(String klass,
Map<String,Object> conf) |
<T> T |
newInstanceImpl(Class<T> klass) |
static <T> T |
newSchedulerStrategyInstance(String klass,
Map<String,Object> conf) |
static ReflectionUtils |
setInstance(ReflectionUtils u)
Provide an instance of this class for delegates to use.
|
public static ReflectionUtils setInstance(ReflectionUtils u)
Provide an instance of this class for delegates to use. To mock out delegated methods, provide an instance of a subclass that overrides the implementation of the delegated method.
u
- a Utils instancepublic static <T> T newInstance(String klass)
public static <T> T newInstance(Class<T> klass)
public static <T> T newSchedulerStrategyInstance(String klass, Map<String,Object> conf)
public <T> T newInstanceImpl(Class<T> klass)
Copyright © 2022 The Apache Software Foundation. All rights reserved.