Package org.apache.storm.utils
Class ReflectionUtils
java.lang.Object
org.apache.storm.utils.ReflectionUtils
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> TnewInstance(Class<T> klass) static <T> TnewInstance(Class<T> klass, Map<String, Object> conf) static <T> TnewInstance(String klass) static <T> TnewInstance(String klass, Map<String, Object> conf) <T> TnewInstanceImpl(Class<T> klass) static <T> TnewSchedulerStrategyInstance(String klass, Map<String, Object> conf) static ReflectionUtilsProvide an instance of this class for delegates to use.
- 
Constructor Details- 
ReflectionUtilspublic ReflectionUtils()
 
- 
- 
Method Details- 
setInstanceProvide 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
 
-