public class ClassLoadServiceImpl extends java.lang.Object implements ClassLoadService
| Constructor and Description |
|---|
ClassLoadServiceImpl() |
| 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.
|
java.lang.Class<? extends jade.core.Agent> |
getAgentClass(java.lang.String agentClassName)
Has to returns the agent class for the specified agent class name.
|
DynamicLoadBalancingBase |
getDynamicLoadBalancing(java.lang.String balancingClassName,
jade.core.Agent executingAgent)
Has to returns an instance of a static load balancing to use by the specified agent.
|
jade.content.onto.Ontology |
getOntologyInstance(java.lang.String ontologyClassName)
Has to return the ontology instance from the specified ontology class name.
|
PlugIn |
getPlugInInstance(java.lang.String pluginClassName,
Project project)
Has to return the
PlugIn instance for the specified class name. |
StaticLoadBalancingBase |
getStaticLoadBalancing(java.lang.String balancingClassName,
jade.core.Agent executingAgent)
Has to returns an instance of a static load balancing to use by the specified agent.
|
TimeModel |
getTimeModelInstance(java.lang.String className)
Has to return a
TimeModel instance from the specified 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 java.lang.Class<? extends jade.core.Agent> getAgentClass(java.lang.String agentClassName)
throws java.lang.NoClassDefFoundError,
java.lang.ClassNotFoundException
ClassLoadServicegetAgentClass in interface ClassLoadServiceagentClassName - the agent class namejava.lang.NoClassDefFoundError - the no class def found errorjava.lang.ClassNotFoundException - the class not found exceptionpublic TimeModel getTimeModelInstance(java.lang.String className) throws java.lang.ClassNotFoundException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.SecurityException
ClassLoadServiceTimeModel instance from the specified class name.getTimeModelInstance in interface ClassLoadServiceclassName - the class namejava.lang.ClassNotFoundException - the class not found exceptionjava.lang.IllegalArgumentException - the illegal argument exceptionjava.lang.InstantiationException - the instantiation exceptionjava.lang.IllegalAccessException - the illegal access exceptionjava.lang.SecurityException - the security exceptionpublic PlugIn getPlugInInstance(java.lang.String pluginClassName, Project project) throws java.lang.ClassNotFoundException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
ClassLoadServicePlugIn instance for the specified class name.getPlugInInstance in interface ClassLoadServicepluginClassName - the PlugIn class nameproject - the projectjava.lang.ClassNotFoundException - the class not found exceptionjava.lang.SecurityException - the security exceptionjava.lang.NoSuchMethodException - the no such method exceptionjava.lang.IllegalArgumentException - the illegal argument exceptionjava.lang.InstantiationException - the instantiation exceptionjava.lang.IllegalAccessException - the illegal access exceptionjava.lang.reflect.InvocationTargetException - the invocation target exceptionpublic 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 exceptionpublic StaticLoadBalancingBase getStaticLoadBalancing(java.lang.String balancingClassName, jade.core.Agent executingAgent) throws java.lang.ClassNotFoundException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
ClassLoadServicegetStaticLoadBalancing in interface ClassLoadServicebalancingClassName - the balancing class nameexecutingAgent - the executing agentjava.lang.ClassNotFoundException - the class not found exceptionjava.lang.SecurityException - the security exceptionjava.lang.NoSuchMethodException - the no such method exceptionjava.lang.IllegalArgumentException - the illegal argument exceptionjava.lang.InstantiationException - the instantiation exceptionjava.lang.IllegalAccessException - the illegal access exceptionjava.lang.reflect.InvocationTargetException - the invocation target exceptionpublic DynamicLoadBalancingBase getDynamicLoadBalancing(java.lang.String balancingClassName, jade.core.Agent executingAgent) throws java.lang.ClassNotFoundException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
ClassLoadServicegetDynamicLoadBalancing in interface ClassLoadServicebalancingClassName - the balancing class nameexecutingAgent - the executing agentjava.lang.ClassNotFoundException - the class not found exceptionjava.lang.SecurityException - the security exceptionjava.lang.NoSuchMethodException - the no such method exceptionjava.lang.IllegalArgumentException - the illegal argument exceptionjava.lang.InstantiationException - the instantiation exceptionjava.lang.IllegalAccessException - the illegal access exceptionjava.lang.reflect.InvocationTargetException - the invocation target exception