public class EomClassLoadServiceUtility
extends de.enflexit.common.classLoadService.BaseClassLoadServiceUtility
Constructor and Description |
---|
EomClassLoadServiceUtility() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<?> |
forName(java.lang.String className)
Returns the class for the specified class name or reference.
|
static EomClassLoadService |
getClassLoadService(java.lang.String className)
Returns the class load service that provides the actual implementations.
|
static AbstractEvaluationStrategy |
getEvaluationStrategyInstance(java.lang.String strategyClassName,
OptionModelController omc)
Return the evaluation strategy instance, specified by its class name.
|
static AbstractOptionModelCalculation |
getOptionModelCalculationInstance(java.lang.String omcClassName,
OptionModelController omc)
Return a new instance of an option model calculation, specified by its class name.
|
static AbstractStaticModel |
getStaticModelInstance(java.lang.String staticModelClassName,
OptionModelController omc)
Returns a new instance of a static model specified by its class name.
|
static java.lang.Object |
newInstance(java.lang.String className)
Returns a new instance of the specified class.
|
public static EomClassLoadService getClassLoadService(java.lang.String className)
className
- the class namepublic static java.lang.Class<?> forName(java.lang.String className) throws java.lang.ClassNotFoundException
className
- the class namejava.lang.ClassNotFoundException
- the class not found exceptionpublic static java.lang.Object newInstance(java.lang.String className) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
className
- the class namejava.lang.ClassNotFoundException
- the class not found exceptionjava.lang.InstantiationException
java.lang.IllegalAccessException
public static AbstractStaticModel getStaticModelInstance(java.lang.String staticModelClassName, OptionModelController omc) throws java.lang.IllegalArgumentException, java.lang.SecurityException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException
staticModelClassName
- the static model class nameomc
- the current OptionModelController
java.lang.IllegalArgumentException
- the illegal argument exceptionjava.lang.SecurityException
- the security exceptionjava.lang.InstantiationException
- the instantiation exceptionjava.lang.IllegalAccessException
- the illegal access exceptionjava.lang.reflect.InvocationTargetException
- the invocation target exceptionjava.lang.NoSuchMethodException
- the no such method exceptionjava.lang.ClassNotFoundException
- the class not found exceptionpublic static AbstractOptionModelCalculation getOptionModelCalculationInstance(java.lang.String omcClassName, OptionModelController omc) throws java.lang.IllegalArgumentException, java.lang.SecurityException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException
omcClassName
- the option model calculations class nameomc
- the current OptionModelController
java.lang.IllegalArgumentException
- the illegal argument exceptionjava.lang.SecurityException
- the security exceptionjava.lang.InstantiationException
- the instantiation exceptionjava.lang.IllegalAccessException
- the illegal access exceptionjava.lang.reflect.InvocationTargetException
- the invocation target exceptionjava.lang.NoSuchMethodException
- the no such method exceptionjava.lang.ClassNotFoundException
- the class not found exceptionpublic static AbstractEvaluationStrategy getEvaluationStrategyInstance(java.lang.String strategyClassName, OptionModelController omc) throws java.lang.IllegalArgumentException, java.lang.SecurityException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException
strategyClassName
- the strategy class nameomc
- the omcjava.lang.IllegalArgumentException
- the illegal argument exceptionjava.lang.SecurityException
- the security exceptionjava.lang.InstantiationException
- the instantiation exceptionjava.lang.IllegalAccessException
- the illegal access exceptionjava.lang.reflect.InvocationTargetException
- the invocation target exceptionjava.lang.NoSuchMethodException
- the no such method exceptionjava.lang.ClassNotFoundException
- the class not found exception