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
BaseClassLoadService
forName
in interface BaseClassLoadService
className
- the class namejava.lang.ClassNotFoundException
- the class not found exceptionjava.lang.NoClassDefFoundError
public java.lang.Object newInstance(java.lang.String className) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
BaseClassLoadService
newInstance
in interface BaseClassLoadService
className
- the class namejava.lang.ClassNotFoundException
- the class not found exceptionjava.lang.InstantiationException
java.lang.IllegalAccessException
public 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
BaseClassLoadService
getOntologyInstance
in interface BaseClassLoadService
ontologyClassName
- 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