1 package com.sslexplorer.agent; 2 3 import java.util.ArrayList ; 4 import java.util.List ; 5 6 import org.jdom.Element; 7 8 import com.sslexplorer.extensions.ExtensionDescriptor; 9 10 29 public class AgentExtensionDefinition { 30 31 33 private ExtensionDescriptor descriptor; 34 private String className; 35 private List classPath = new ArrayList (); 36 private List jvmArgs = new ArrayList (); 37 private String plugin; 38 private Element agentXML; 39 40 47 public AgentExtensionDefinition(ExtensionDescriptor descriptor, String className, String plugin, Element agentXML) { 48 this.descriptor = descriptor; 49 this.className = className; 50 this.plugin = plugin; 51 agentXML.detach(); 52 this.agentXML = agentXML; 53 } 54 55 public Element getAgentXML() { 56 return agentXML; 57 } 58 59 64 public String getPlugin() { 65 return plugin; 66 } 67 68 73 public String getName() { 74 return descriptor.getId(); 75 } 76 77 82 public ExtensionDescriptor getDescriptor() { 83 return descriptor; 84 } 85 86 93 public String getClassName() { 94 return className; 95 } 96 97 102 public List getClassPath() { 103 return classPath; 104 } 105 106 110 public void addClassPath(String jarfile) { 111 classPath.add(jarfile); 112 } 113 114 119 public void addJVMArgument(String arg) { 120 jvmArgs.add(arg); 121 } 122 123 129 public List getJVMArguments() { 130 return jvmArgs; 131 } 132 133 } | Popular Tags |