Package org.apache.storm.utils
Class ReflectionUtils
java.lang.Object
org.apache.storm.utils.ReflectionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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
Provide an instance of this class for delegates to use.
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
setInstance
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.- Parameters:
u
- a Utils instance- Returns:
- the previously set instance
-
newInstance
-
newInstance
-
newInstance
-
newInstance
-
newSchedulerStrategyInstance
-
newInstanceImpl
-