public class ClassLoadServiceUtilityImpl extends AbstractClassLoadServiceUtilityImpl<ClassLoadService> implements ClassLoadService
DefaultClassLoadServiceUtility
and prepares the access to the BaseClassLoadService depending on the OSGI bundle.SERVICE_REFERENCE_FILTER| Constructor and Description |
|---|
ClassLoadServiceUtilityImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
ClassLoadService |
getLocalClassLoadService()
Has to return the specific local class load service.
|
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. |
forName, getClassLoadService, getOntologyInstance, newInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforName, getOntologyInstance, newInstancepublic ClassLoadService getLocalClassLoadService()
AbstractClassLoadServiceUtilityImplgetLocalClassLoadService in class AbstractClassLoadServiceUtilityImpl<ClassLoadService>public 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 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