public class AgentRepItem extends java.lang.Object implements RepItem
Constructor and Description |
---|
AgentRepItem(java.io.File classFile)
construct the item given the file.
|
AgentRepItem(java.lang.String aName,
java.lang.String cPath,
java.lang.String desc) |
AgentRepItem(java.lang.String aName,
java.lang.String cPath,
java.lang.String desc,
java.lang.String param) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getClassPath() |
java.lang.String |
getDescription() |
Agent |
getInstance()
Try to load the agent that this reference points to.
|
java.lang.String |
getName() |
java.lang.String |
getParams() |
java.lang.String |
getVersion()
Get the version of this agent.
|
java.lang.String |
toString() |
public AgentRepItem(java.lang.String aName, java.lang.String cPath, java.lang.String desc)
public AgentRepItem(java.lang.String aName, java.lang.String cPath, java.lang.String desc, java.lang.String param)
public AgentRepItem(java.io.File classFile) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.ClassCastException, java.lang.IllegalArgumentException, java.io.IOException
Agent.getName()
of the file. description will be constructed
using name and Agent.getVersion()
.classFile
- java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalArgumentException
java.lang.ClassCastException
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String getClassPath()
public java.lang.String getVersion()
public java.lang.String getParams()
public java.lang.String getDescription()
public java.lang.String toString()
toString
in class java.lang.Object
public Agent getInstance() throws InstantiateException
Agent
InstantiateException
- if agent can't be loaded