public class BaseClassLoadServiceImpl extends java.lang.Object implements BaseClassLoadService
| Constructor and Description |
|---|
BaseClassLoadServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
forName(java.lang.String className)
Has to return the class for the specified class name or reference.
|
jade.content.onto.Ontology |
getOntologyInstance(java.lang.String ontologyClassName)
Has to return the ontology instance from the specified ontology class name.
|
java.lang.Object |
newInstance(java.lang.String className)
Has to return a new instance of the specified class.
|
public java.lang.Class<?> forName(java.lang.String className)
throws java.lang.ClassNotFoundException,
java.lang.NoClassDefFoundError
BaseClassLoadServiceforName in interface BaseClassLoadServiceclassName - the class namejava.lang.ClassNotFoundException - the class not found exceptionjava.lang.NoClassDefFoundErrorpublic java.lang.Object newInstance(java.lang.String className)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
BaseClassLoadServicenewInstance in interface BaseClassLoadServiceclassName - the class namejava.lang.ClassNotFoundException - the class not found exceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionpublic jade.content.onto.Ontology getOntologyInstance(java.lang.String ontologyClassName)
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.SecurityException,
java.lang.NoSuchMethodException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException
BaseClassLoadServicegetOntologyInstance in interface BaseClassLoadServiceontologyClassName - the ontology class namejava.lang.ClassNotFoundException - the class not found exceptionjava.lang.IllegalAccessException - the illegal access exceptionjava.lang.SecurityException - the security exceptionjava.lang.NoSuchMethodException - the no such method exceptionjava.lang.IllegalArgumentException - the illegal argument exceptionjava.lang.reflect.InvocationTargetException - the invocation target exception